public class PipeItemsDiamond extends Pipe<PipeTransportItems> implements IClientState
| Constructor and Description |
|---|
PipeItemsDiamond(net.minecraft.item.Item item) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
blockActivated(net.minecraft.entity.player.EntityPlayer entityplayer) |
void |
eventHandler(PipeEventItem.FindDest event) |
net.minecraft.inventory.IInventory |
getFilters() |
int |
getIconIndex(net.minecraftforge.common.util.ForgeDirection direction)
Should return the index in the array returned by GetTextureIcons() for a
specified direction
|
int |
getIconIndexForItem()
Should return the textureindex used by the Pipe Item Renderer, as this is
done client-side the default implementation might not work if your
getTextureIndex(Orienations.Unknown) has logic.
|
IIconProvider |
getIconProvider()
Should return the IIconProvider that provides icons for this pipe
|
void |
readData(io.netty.buffer.ByteBuf data)
Deserializes the state from the stream
|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
writeData(io.netty.buffer.ByteBuf data)
Serializes the state to the stream
|
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
actionsActivated, canConnectRedstone, canPipeConnect, computeItemDrop, doDrop, dropContents, dropItem, getActions, getContainer, getOpenOrientation, getWorld, handlePipeEvent, hasGate, hasGate, initialize, inputOpen, invalidate, isIndirectlyPoweringTo, isPoweringTo, isTriggerActive, isWireConnectedTo, isWired, isWired, needsInit, notifyBlocksOfNeighborChange, onBlockPlaced, onBlockPlacedBy, onBlockRemoval, onChunkUnload, onEntityCollidedWithBlock, onNeighborBlockChange, outputOpen, randomDisplayTick, resetGate, setTile, updateEntity, updateNeighbors, updateSignalState, validatepublic net.minecraft.inventory.IInventory getFilters()
public IIconProvider getIconProvider()
PipegetIconProvider in class Pipe<PipeTransportItems>public int getIconIndex(net.minecraftforge.common.util.ForgeDirection direction)
PipegetIconIndex in class Pipe<PipeTransportItems>direction - - The direction for which the indexed should be
rendered. Unknown for pipe centerpublic int getIconIndexForItem()
PipegetIconIndexForItem in class Pipe<PipeTransportItems>public boolean blockActivated(net.minecraft.entity.player.EntityPlayer entityplayer)
blockActivated in class Pipe<PipeTransportItems>public void eventHandler(PipeEventItem.FindDest event)
public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT in class Pipe<PipeTransportItems>public void writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBT in class Pipe<PipeTransportItems>public void writeData(io.netty.buffer.ByteBuf data)
IClientStatewriteData in interface IClientStatepublic void readData(io.netty.buffer.ByteBuf data)
IClientStatereadData in interface IClientState