2014-04-11 01:59:04 +02:00
|
|
|
package com.pahimar.ee3.item;
|
|
|
|
|
2023-01-03 17:47:36 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
2015-03-05 05:31:43 +01:00
|
|
|
import com.pahimar.ee3.reference.Messages;
|
2014-04-11 01:59:04 +02:00
|
|
|
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
|
|
|
|
2023-01-03 17:47:36 +01:00
|
|
|
public class ItemBlockAlchemicalChest extends ItemBlock {
|
|
|
|
public ItemBlockAlchemicalChest(Block block) {
|
2014-04-11 01:59:04 +02:00
|
|
|
super(block);
|
|
|
|
this.setHasSubtypes(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2023-01-03 17:47:36 +01:00
|
|
|
public int getMetadata(int meta) {
|
2014-04-11 01:59:04 +02:00
|
|
|
return meta;
|
|
|
|
}
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
2023-01-03 17:47:36 +01:00
|
|
|
public void addInformation(
|
|
|
|
ItemStack itemStack, EntityPlayer entityPlayer, List list, boolean flag
|
|
|
|
) {
|
2014-04-11 01:59:04 +02:00
|
|
|
int metaData = itemStack.getItemDamage();
|
|
|
|
|
2023-01-03 17:47:36 +01:00
|
|
|
if (metaData == 0) {
|
|
|
|
list.add(StatCollector.translateToLocal(
|
|
|
|
StatCollector.translateToLocal(Messages.Tooltips.SMALL)
|
|
|
|
));
|
|
|
|
} else if (metaData == 1) {
|
|
|
|
list.add(StatCollector.translateToLocal(
|
|
|
|
StatCollector.translateToLocal(Messages.Tooltips.MEDIUM)
|
|
|
|
));
|
|
|
|
} else if (metaData == 2) {
|
|
|
|
list.add(StatCollector.translateToLocal(
|
|
|
|
StatCollector.translateToLocal(Messages.Tooltips.LARGE)
|
|
|
|
));
|
2014-04-11 01:59:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|