diff options
author | Christina Berchtold <kekzdealer@gmail.com> | 2020-05-04 00:21:42 +0200 |
---|---|---|
committer | Christina Berchtold <kekzdealer@gmail.com> | 2020-05-04 00:21:42 +0200 |
commit | d0ff8c1c6b6dbe4b6f3ce33a380ee837632a9507 (patch) | |
tree | 08ce83b210625caadef4d48c913276756a20ac19 /src/main/java/common/itemBlocks/IB_LapotronicEnergyUnit.java | |
parent | 90efd08c2b3cee3fe0ad0b4e70e8762ff7a31a53 (diff) | |
download | GT5-Unofficial-d0ff8c1c6b6dbe4b6f3ce33a380ee837632a9507.tar.gz GT5-Unofficial-d0ff8c1c6b6dbe4b6f3ce33a380ee837632a9507.tar.bz2 GT5-Unofficial-d0ff8c1c6b6dbe4b6f3ce33a380ee837632a9507.zip |
visiting Lucy
Diffstat (limited to 'src/main/java/common/itemBlocks/IB_LapotronicEnergyUnit.java')
-rw-r--r-- | src/main/java/common/itemBlocks/IB_LapotronicEnergyUnit.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/main/java/common/itemBlocks/IB_LapotronicEnergyUnit.java b/src/main/java/common/itemBlocks/IB_LapotronicEnergyUnit.java new file mode 100644 index 0000000000..0df88fa10a --- /dev/null +++ b/src/main/java/common/itemBlocks/IB_LapotronicEnergyUnit.java @@ -0,0 +1,39 @@ +package common.itemBlocks; + +import java.util.List; + +import net.minecraft.block.Block; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemBlock; +import net.minecraft.item.ItemStack; + +public class IB_LapotronicEnergyUnit extends ItemBlock { + + public IB_LapotronicEnergyUnit(Block block) { + super(block); + } + + @Override + public int getMetadata(int meta) { + return meta; + } + + @Override + public String getUnlocalizedName(ItemStack stack) { + return super.getUnlocalizedName() + "." + stack.getItemDamage(); + } + + @SuppressWarnings({ "rawtypes", "unchecked" }) + @Override + public void addInformation(ItemStack stack, EntityPlayer player, List lines, boolean advancedTooltips) { + lines.add("Part of the Lapotronic Super Capacitor"); + switch(stack.getItemDamage()) { + case 1: lines.add("Capacity: 100,000,000 EU"); lines.add("Voltage: 8192"); break; + case 2: lines.add("Capacity: 1,000,000,000 EU"); lines.add("Voltage: 32,768"); break; + case 3: lines.add("Capacity: 10,00,000,000 EU"); lines.add("Voltage: 131,072"); break; + case 4: lines.add("Capacity: 100,000,000,000 EU"); lines.add("Voltage: 524,288"); break; + case 5: lines.add("Capacity: 9,223,372,036,854,775,807 EU"); lines.add("Voltage: 524,288"); break; + case 6: lines.add("Capacity: 9,223,372,036,854,775,807 EU"); lines.add("Voltage: 134,217,728"); break; + } + } +} |