Update to latest commit(Master)
This commit is contained in:
parent
c8b6edd390
commit
c651363b73
12 changed files with 174 additions and 135 deletions
18
src/main/java/techreborn/itemblocks/ItemBlockSolarPanel.java
Normal file
18
src/main/java/techreborn/itemblocks/ItemBlockSolarPanel.java
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue