Better naming
This commit is contained in:
@@ -38,7 +38,7 @@ public class BlockController extends BlockBase {
|
||||
@Override
|
||||
public void getSubBlocks(Item item, CreativeTabs tab, List subItems) {
|
||||
for (int i = 0; i <= 1; i++) {
|
||||
subItems.add(ItemBlockController.initNBT(new ItemStack(item, 1, i)));
|
||||
subItems.add(ItemBlockController.createStackWithNBT(new ItemStack(item, 1, i)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -33,10 +33,10 @@ public class ItemBlockController extends ItemBlockBase {
|
||||
public void onCreated(ItemStack stack, World world, EntityPlayer player) {
|
||||
super.onCreated(stack, world, player);
|
||||
|
||||
initNBT(stack);
|
||||
createStackWithNBT(stack);
|
||||
}
|
||||
|
||||
public static ItemStack initNBT(ItemStack stack) {
|
||||
public static ItemStack createStackWithNBT(ItemStack stack) {
|
||||
NBTTagCompound tag = stack.getTagCompound();
|
||||
|
||||
if (tag == null) {
|
||||
|
||||
Reference in New Issue
Block a user