2014-04-11 01:59:04 +02:00
|
|
|
package com.pahimar.ee3.item;
|
|
|
|
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.item.ItemBlock;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2014-05-26 23:27:11 +02:00
|
|
|
import net.minecraft.util.StatCollector;
|
2014-04-11 01:59:04 +02:00
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public class ItemBlockAlchemicalChest extends ItemBlock
|
|
|
|
{
|
|
|
|
public ItemBlockAlchemicalChest(Block block)
|
|
|
|
{
|
|
|
|
super(block);
|
|
|
|
this.setHasSubtypes(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getMetadata(int meta)
|
|
|
|
{
|
|
|
|
return meta;
|
|
|
|
}
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List list, boolean flag)
|
|
|
|
{
|
|
|
|
// TODO Localize and add more descriptive text
|
|
|
|
int metaData = itemStack.getItemDamage();
|
|
|
|
|
|
|
|
if (metaData == 0)
|
|
|
|
{
|
2014-05-26 17:19:19 +02:00
|
|
|
list.add(StatCollector.translateToLocal("tooltip.ee3:alchemicalChestPrefix.small"));
|
2014-04-11 01:59:04 +02:00
|
|
|
}
|
|
|
|
else if (metaData == 1)
|
|
|
|
{
|
2014-05-26 17:19:19 +02:00
|
|
|
list.add(StatCollector.translateToLocal("tooltip.ee3:alchemicalChestPrefix.medium"));
|
2014-04-11 01:59:04 +02:00
|
|
|
}
|
|
|
|
else if (metaData == 2)
|
|
|
|
{
|
2014-05-26 17:19:19 +02:00
|
|
|
list.add(StatCollector.translateToLocal("tooltip.ee3:alchemicalChestPrefix.large"));
|
2014-04-11 01:59:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|