public class PipeFluidsWood extends Pipe<PipeTransportFluids> implements IEnergyHandler, ISerializable
| Modifier and Type | Field and Description |
|---|---|
int |
liquidToExtract |
protected int |
solidIconIndex |
protected int |
standardIconIndex |
| Constructor and Description |
|---|
PipeFluidsWood(net.minecraft.item.Item item) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
blockActivated(net.minecraft.entity.player.EntityPlayer entityplayer) |
boolean |
canConnectEnergy(net.minecraftforge.common.util.ForgeDirection from)
Returns TRUE if the TileEntity can connect on a given side.
|
int |
extractEnergy(net.minecraftforge.common.util.ForgeDirection from,
int maxExtract,
boolean simulate)
Remove energy from an IEnergyProvider, internal distribution is left entirely to the IEnergyProvider.
|
int |
extractFluid(net.minecraftforge.fluids.IFluidHandler fluidHandler,
net.minecraftforge.common.util.ForgeDirection side) |
int |
getEnergyStored(net.minecraftforge.common.util.ForgeDirection from)
Returns the amount of energy currently stored.
|
int |
getIconIndex(net.minecraftforge.common.util.ForgeDirection direction)
Should return the index in the array returned by GetTextureIcons() for a
specified direction
|
IIconProvider |
getIconProvider()
Should return the IIconProvider that provides icons for this pipe
|
int |
getMaxEnergyStored(net.minecraftforge.common.util.ForgeDirection from)
Returns the maximum amount of energy that can be stored.
|
void |
initialize() |
void |
onNeighborBlockChange(int blockId) |
boolean |
outputOpen(net.minecraftforge.common.util.ForgeDirection to) |
void |
readData(io.netty.buffer.ByteBuf data)
Deserializes the state from the stream
|
int |
receiveEnergy(net.minecraftforge.common.util.ForgeDirection from,
int maxReceive,
boolean simulate)
Add energy to an IEnergyReceiver, internal distribution is left entirely to the IEnergyReceiver.
|
void |
updateEntity() |
void |
writeData(io.netty.buffer.ByteBuf data)
Serializes the state to the stream
|
actionsActivated, canConnectRedstone, canPipeConnect, computeItemDrop, doDrop, dropContents, dropItem, getActions, getContainer, getDroppedItems, getGate, getIconIndexForItem, getMaxRedstoneOutput, getOpenOrientation, getTile, getWorld, hasGate, hasGate, inputOpen, invalidate, isIndirectlyPoweringTo, isInitialized, isPoweringTo, isWireActive, isWireConnectedTo, isWired, notifyBlocksOfNeighborChange, onBlockPlaced, onBlockPlacedBy, onChunkUnload, onEntityCollidedWithBlock, randomDisplayTick, readFromNBT, resetGates, resolveActions, setTile, updateNeighbors, updateSignalState, validate, writeToNBTpublic int liquidToExtract
protected int standardIconIndex
protected int solidIconIndex
public boolean blockActivated(net.minecraft.entity.player.EntityPlayer entityplayer)
blockActivated in class Pipe<PipeTransportFluids>public void onNeighborBlockChange(int blockId)
onNeighborBlockChange in class Pipe<PipeTransportFluids>public void initialize()
initialize in class Pipe<PipeTransportFluids>public void updateEntity()
updateEntity in class Pipe<PipeTransportFluids>public int extractFluid(net.minecraftforge.fluids.IFluidHandler fluidHandler,
net.minecraftforge.common.util.ForgeDirection side)
public IIconProvider getIconProvider()
PipegetIconProvider in class Pipe<PipeTransportFluids>public int getIconIndex(net.minecraftforge.common.util.ForgeDirection direction)
PipegetIconIndex in class Pipe<PipeTransportFluids>direction - - The direction for which the indexed should be
rendered. Unknown for pipe centerpublic boolean outputOpen(net.minecraftforge.common.util.ForgeDirection to)
outputOpen in class Pipe<PipeTransportFluids>public boolean canConnectEnergy(net.minecraftforge.common.util.ForgeDirection from)
IEnergyConnectioncanConnectEnergy in interface IEnergyConnectionpublic int receiveEnergy(net.minecraftforge.common.util.ForgeDirection from,
int maxReceive,
boolean simulate)
IEnergyHandlerreceiveEnergy in interface IEnergyHandlerreceiveEnergy in interface IEnergyReceiverfrom - Orientation the energy is received from.maxReceive - Maximum amount of energy to receive.simulate - If TRUE, the charge will only be simulated.public int extractEnergy(net.minecraftforge.common.util.ForgeDirection from,
int maxExtract,
boolean simulate)
IEnergyHandlerextractEnergy in interface IEnergyHandlerextractEnergy in interface IEnergyProviderfrom - Orientation the energy is extracted from.maxExtract - Maximum amount of energy to extract.simulate - If TRUE, the extraction will only be simulated.public int getEnergyStored(net.minecraftforge.common.util.ForgeDirection from)
IEnergyHandlergetEnergyStored in interface IEnergyHandlergetEnergyStored in interface IEnergyProvidergetEnergyStored in interface IEnergyReceiverpublic int getMaxEnergyStored(net.minecraftforge.common.util.ForgeDirection from)
IEnergyHandlergetMaxEnergyStored in interface IEnergyHandlergetMaxEnergyStored in interface IEnergyProvidergetMaxEnergyStored in interface IEnergyReceiverpublic void writeData(io.netty.buffer.ByteBuf data)
ISerializablewriteData in interface ISerializablepublic void readData(io.netty.buffer.ByteBuf data)
ISerializablereadData in interface ISerializable