Jump to content

Glass??


TwinAndy

Recommended Posts

Glass, like a stock glass block in Minecraft? Just follow the basic block tutorial on the Forge wiki and the actual BlockGlass.java, but there's nothing fancy really. The transparency of the block is due to the texture itself ( in comparison: the ice block uses blending and is a bit more difficult to implement ).

Link to comment
Share on other sites

Glass, like a stock glass block in Minecraft? Just follow the basic block tutorial on the Forge wiki and the actual BlockGlass.java, but there's nothing fancy really. The transparency of the block is due to the texture itself ( in comparison: the ice block uses blending and is a bit more difficult to implement ).

Its not just a normal block

Link to comment
Share on other sites

 

You change your constructor to receive four arguments instead of two, so no wonder you get the error.

 

Its not just a normal block

 

But the glass block is. You've asked for glass, you've got glass. What else do ya need then?

Link to comment
Share on other sites

 

You change your constructor to receive four arguments instead of two, so no wonder you get the error.

 

Its not just a normal block

 

But the glass block is. You've asked for glass, you've got glass. What else do ya need then?

I mean glass block

Link to comment
Share on other sites

Its not just a normal block

 

But the glass block is. You've asked for glass, you've got glass. What else do ya need then?

I mean glass block

 

:D Oh I don't know, then I suppose 90% of the blocks in game must not be normal to you. Fine then: a glass block is not normal. But I feel like I'm missing the point :)

Link to comment
Share on other sites

That's basically what I've explained.

 

This is standard code. It seems like you need to learn how to program first.

 

class foo
{
       foo(int par1, int par2)
       {
        }
};

class bar extends foo
{
        bar(float par1, int p1, int p2)
       {
              super(p1, p2);
       }
};

Link to comment
Share on other sites

Super calls the constructor for the base class.

 

If you have extended blockGlass then Super() MUST have the same number and type of parameters as the BlockGlass() function.

can you please explain this to me

 

Sure:

 

http://thenewboston.org/list.php?cat=31

 

Watch number 17 about constructors and number 49 about inheritance.

Oh and while you're at it, you should watch them ALL to learn the basics you need <3

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.