public class PipePowerWood extends Pipe<PipeTransportPower> implements IPipeTransportPowerHook
| Modifier and Type | Field and Description |
|---|---|
boolean[] |
powerSources |
protected int |
solidIconIndex |
protected int |
standardIconIndex |
| Constructor and Description |
|---|
PipePowerWood(net.minecraft.item.Item item) |
| Modifier and Type | Method and Description |
|---|---|
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
|
boolean |
isPowerSource(net.minecraftforge.common.util.ForgeDirection from) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound data) |
double |
receiveEnergy(net.minecraftforge.common.util.ForgeDirection from,
double val)
Override default behavior on receiving energy into the pipe.
|
double |
requestEnergy(net.minecraftforge.common.util.ForgeDirection from,
double amount)
Override default requested power.
|
boolean |
requestsPower() |
void |
updateEntity() |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound data) |
actionsActivated, blockActivated, canConnectRedstone, canPipeConnect, computeItemDrop, 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, validatepublic final boolean[] powerSources
protected 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 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 double receiveEnergy(net.minecraftforge.common.util.ForgeDirection from,
double val)
IPipeTransportPowerHookreceiveEnergy in interface IPipeTransportPowerHookpublic double requestEnergy(net.minecraftforge.common.util.ForgeDirection from,
double amount)
IPipeTransportPowerHookrequestEnergy in interface IPipeTransportPowerHookpublic boolean isPowerSource(net.minecraftforge.common.util.ForgeDirection from)