8b1179699f
Model is not fully done since i want to get the valve to set on diffrent faces when the top is in use. Also want it to rotate a bit when powered by redstone. Also worked on connectionHelper and switch a few of the itemRenders to an actual itemRenderHelper so they look nice in the inventory and in the players hand.
34 lines
745 B
Java
34 lines
745 B
Java
package liquidmechanics.common.item;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.item.ItemBlock;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
public class ItemReleaseValve extends ItemBlock
|
|
{
|
|
|
|
public ItemReleaseValve(int id)
|
|
{
|
|
super(id);
|
|
this.setMaxDamage(0);
|
|
this.setHasSubtypes(true);
|
|
}
|
|
|
|
@Override
|
|
public int getMetadata(int damage)
|
|
{
|
|
return damage;
|
|
}
|
|
|
|
@Override
|
|
public String getItemNameIS(ItemStack par1ItemStack)
|
|
{
|
|
return Block.blocksList[this.getBlockID()].getBlockName() + "." + (par1ItemStack.getItemDamage());
|
|
}
|
|
|
|
@Override
|
|
public String getItemName()
|
|
{
|
|
return Block.blocksList[this.getBlockID()].getBlockName() + ".0";
|
|
}
|
|
}
|