generated from tilera/1710mod
28 lines
964 B
Java
28 lines
964 B
Java
package electricexpansion.common.itemblocks;
|
|
|
|
import electricexpansion.api.EnumWireMaterial;
|
|
import electricexpansion.common.helpers.ItemBlockCableHelper;
|
|
import java.util.List;
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
public class ItemBlockRawWire extends ItemBlockCableHelper {
|
|
public ItemBlockRawWire(final Block block) {
|
|
super(block);
|
|
}
|
|
|
|
@Override
|
|
public void addInformation(final ItemStack par1ItemStack,
|
|
final EntityPlayer par2EntityPlayer,
|
|
final List par3List, final boolean par4) {
|
|
super.addInformation(par1ItemStack, par2EntityPlayer, par3List, par4);
|
|
par3List.add("Will shock you when near");
|
|
par3List.add("Shock Damage: " +
|
|
EnumWireMaterial.values()[par1ItemStack.getItemDamage()].electrocutionDamage /
|
|
2.0
|
|
+
|
|
" Hearts");
|
|
}
|
|
}
|