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

Posted

hey need help, how do i get my blocks to render and also give them sub names?

 

my current code:

 

 

public class blockAsphalt extends Block

{

private Icon[][] iconBuffer;

 

public blockAsphalt(int ID, Material material)

{

super(ID, material); //The ID and material

}

 

public int damageDropped(int i) //Tells it what block it drops and also for creative mode pick block

{

return i;

}

 

@SideOnly(Side.CLIENT)

public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List) //Adds the metadata blocks to the creative inventory

{

for (int var4 = 0; var4 < 9; ++var4)

{

par3List.add(new ItemStack(par1, 1, var4));

}

}

 

@Override

public void func_94332_a(IconRegister par1IconRegister)

{

iconBuffer = new Icon[9][6];

 

iconBuffer[0][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[0][1] = par1IconRegister.func_94245_a("Class3:Asphalt"); // top

        iconBuffer[0][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[0][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[0][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[0][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[1][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[1][1] = par1IconRegister.func_94245_a("Class3:YellowLine1"); // top

        iconBuffer[1][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[1][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[1][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[1][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[2][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[2][1] = par1IconRegister.func_94245_a("Class3:YellowLine2"); // top

        iconBuffer[2][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[2][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[2][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[2][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[3][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[3][1] = par1IconRegister.func_94245_a("Class3:WhiteCorner1"); // top

        iconBuffer[3][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[3][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[3][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[3][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[4][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[4][1] = par1IconRegister.func_94245_a("Class3:WhiteCorner2"); // top

        iconBuffer[4][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[4][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[4][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[4][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[5][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[5][1] = par1IconRegister.func_94245_a("Class3:WhiteCorner3"); // top

        iconBuffer[5][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[5][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[5][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[5][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[6][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[6][1] = par1IconRegister.func_94245_a("Class3:WhiteCorner4"); // top

        iconBuffer[6][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[6][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[6][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[6][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[7][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[7][1] = par1IconRegister.func_94245_a("Class3:WhiteLine1"); // top

        iconBuffer[7][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[7][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[7][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[7][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

       

        iconBuffer[8][0] = par1IconRegister.func_94245_a("Class3:Asphalt"); // bottom

        iconBuffer[8][1] = par1IconRegister.func_94245_a("Class3:WhiteLine2"); // top

        iconBuffer[8][2] = par1IconRegister.func_94245_a("Class3:Asphalt"); // north

        iconBuffer[8][3] = par1IconRegister.func_94245_a("Class3:Asphalt"); // east

        iconBuffer[8][4] = par1IconRegister.func_94245_a("Class3:Asphalt"); // south

        iconBuffer[8][5] = par1IconRegister.func_94245_a("Class3:Asphalt"); // west

}

}

 

 

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.