aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/item
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/gtPlusPlus/core/item')
-rw-r--r--src/Java/gtPlusPlus/core/item/base/itemblock/ItemBlockEntityBase.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/item/base/itemblock/ItemBlockEntityBase.java b/src/Java/gtPlusPlus/core/item/base/itemblock/ItemBlockEntityBase.java
index 43a37b423c..0dda165b6b 100644
--- a/src/Java/gtPlusPlus/core/item/base/itemblock/ItemBlockEntityBase.java
+++ b/src/Java/gtPlusPlus/core/item/base/itemblock/ItemBlockEntityBase.java
@@ -1,9 +1,14 @@
package gtPlusPlus.core.item.base.itemblock;
+import java.util.List;
+
+import gtPlusPlus.core.block.general.BlockTankXpConverter;
import gtPlusPlus.core.creative.AddToCreativeTab;
import net.minecraft.block.Block;
+import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
+import net.minecraft.util.EnumChatFormatting;
public class ItemBlockEntityBase extends ItemBlock {
@@ -19,5 +24,18 @@ public class ItemBlockEntityBase extends ItemBlock {
return super.getColorFromItemStack(p_82790_1_, p_82790_2_);
}
+ @SuppressWarnings({ "unchecked", "rawtypes" })
+ @Override
+ public final void addInformation(final ItemStack stack, final EntityPlayer aPlayer, final List list, final boolean bool) {
+ if (Block.getBlockFromItem(stack.getItem()) instanceof BlockTankXpConverter){
+ list.add(EnumChatFormatting.GRAY+"Liquid Xp can be filled or drained from all four sides.");
+ list.add(EnumChatFormatting.GRAY+"Mob Essence can be filled or drained from the top and bottom.");
+ }
+ else if (Block.getBlockFromItem(stack.getItem()) instanceof BlockTankXpConverter){
+ //list.add(EnumChatFormatting.GRAY+"A pile of " + materialName + " dust.");
+ }
+ super.addInformation(stack, aPlayer, list, bool);
+ }
+
} \ No newline at end of file