Created
September 19, 2017 03:42
-
-
Save Dockter/ea324d3aeceb9a9f7289af3a3eeec0dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void getSubBlocks(CreativeTabs tab, NonNullList<ItemStack> list) { | |
for (int i = 0; i < numSubBlocks; i++) { | |
ItemStack item = new ItemStack(this,1,i); | |
System.out.println("SGCraft: Item: " + item.getDisplayName()); | |
list.add(item); | |
} | |
// Update: may be incorrect, needs testing. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment