Update to latest commit(Master)

This commit is contained in:
Dimmerworld 2017-10-05 02:38:11 +11:00 committed by drcrazy
parent c8b6edd390
commit c651363b73
12 changed files with 174 additions and 135 deletions

View file

@ -0,0 +1,18 @@
package techreborn.itemblocks;
import net.minecraft.block.Block;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import techreborn.blocks.generator.solarpanel.EnumPanelType;
public class ItemBlockSolarPanel extends ItemBlock {
public ItemBlockSolarPanel(Block block) {
super(block);
setHasSubtypes(true);
}
public String getUnlocalizedName(ItemStack stack) {
return super.getUnlocalizedName() + "." + EnumPanelType.values()[stack.getItemDamage()].getName();
}
}