Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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 ).

  • Author

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

 

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?

  • Author

 

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

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 :)

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.

  • Author

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

 

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);
       }
};

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...

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.