183dc35c47
*added Name to the color Enum *added a new liquid call Waste liquid *added effect for mixing liquids in pipes *stored+filling=outcome *lava+water = obby *water+lava=cobble *other+other=waste liquid *Improve pipe render and create 14 new pipe textures *Improved Tank render and creates some new textures *Fixed lang file for all Blocks, items still don't work *Fixed save issue using Compent Tags to save liquids *Fixed Universal Pipe working with pumps *Removed: Some crafting recipes plus fixed others *Removed: Item version of pipe,tank, though a similar version is used just for naming as a BlockItem *Bug: Tanks don't work at all
34 lines
729 B
Java
34 lines
729 B
Java
package liquidmechanics.common.item;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.item.ItemBlock;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
public class ItemPipe extends ItemBlock
|
|
{
|
|
|
|
public ItemPipe(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";
|
|
}
|
|
}
|