Better naming

This commit is contained in:
Raoul Van den Berge
2016-05-21 21:27:09 +02:00
parent 2073a94fcf
commit c1c994fe1e
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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) {