sensitive cables
This commit is contained in:
16
src/main/java/storagecraft/item/ItemBlockBase.java
Normal file
16
src/main/java/storagecraft/item/ItemBlockBase.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package storagecraft.item;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemBlockWithMetadata;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ItemBlockBase extends ItemBlockWithMetadata {
|
||||
public ItemBlockBase(Block block) {
|
||||
super(block, block);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack stack) {
|
||||
return getUnlocalizedName() + "." + stack.getItemDamage();
|
||||
}
|
||||
}
|
||||
9
src/main/java/storagecraft/item/ItemBlockCable.java
Normal file
9
src/main/java/storagecraft/item/ItemBlockCable.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package storagecraft.item;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
|
||||
public class ItemBlockCable extends ItemBlockBase {
|
||||
public ItemBlockCable(Block block) {
|
||||
super(block);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user