public class PipePowerWood extends Pipe<PipeTransportPower> implements IPowerReceptor, IPipeTransportPowerHook
| Modifier and Type | Field and Description |
|---|---|
protected int |
solidIconIndex |
protected int |
standardIconIndex |
actionTracker, container, gate, item, signalStrength, transport, wireSet| Constructor and Description |
|---|
PipePowerWood(net.minecraft.item.Item item) |
| Modifier and Type | Method and Description |
|---|---|
void |
doWork(PowerHandler workProvider)
Call back from the PowerHandler that is called when the stored power
exceeds the activation power.
|
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
|
PowerHandler.PowerReceiver |
getPowerReceiver(net.minecraftforge.common.util.ForgeDirection side)
Get the PowerReceiver for this side of the block.
|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound data) |
float |
receiveEnergy(net.minecraftforge.common.util.ForgeDirection from,
float val)
Override default behavior on receiving energy into the pipe.
|
float |
requestEnergy(net.minecraftforge.common.util.ForgeDirection from,
float amount)
Override default requested power.
|
boolean |
requestsPower() |
void |
updateEntity() |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound data) |
actionsActivated, blockActivated, canConnectRedstone, canPipeConnect, doDrop, dropContents, dropItem, getActions, getContainer, getIconIndexForItem, 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, updateNeighbors, updateSignalState, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetWorldprotected int standardIconIndex
protected int solidIconIndex
public IIconProvider getIconProvider()
PipegetIconProvider in class Pipe<PipeTransportPower>public int getIconIndex(net.minecraftforge.common.util.ForgeDirection direction)
PipegetIconIndex in class Pipe<PipeTransportPower>direction - - The direction for which the indexed should be
rendered. Unknown for pipe centerpublic PowerHandler.PowerReceiver getPowerReceiver(net.minecraftforge.common.util.ForgeDirection side)
IPowerReceptorgetPowerReceiver in interface IPowerReceptorpublic void doWork(PowerHandler workProvider)
IPowerReceptordoWork in interface IPowerReceptorpublic void updateEntity()
updateEntity in class Pipe<PipeTransportPower>public boolean requestsPower()
public void writeToNBT(net.minecraft.nbt.NBTTagCompound data)
writeToNBT in class Pipe<PipeTransportPower>public void readFromNBT(net.minecraft.nbt.NBTTagCompound data)
readFromNBT in class Pipe<PipeTransportPower>public float receiveEnergy(net.minecraftforge.common.util.ForgeDirection from,
float val)
IPipeTransportPowerHookreceiveEnergy in interface IPipeTransportPowerHookpublic float requestEnergy(net.minecraftforge.common.util.ForgeDirection from,
float amount)
IPipeTransportPowerHookrequestEnergy in interface IPipeTransportPowerHook