public class PipePowerWood extends Pipe<PipeTransportPower> implements IPipeTransportPowerHook, IEnergyHandler, IRedstoneEngineReceiver, IDebuggable
| Modifier and Type | Field and Description |
|---|---|
protected RFBattery |
battery |
boolean[] |
powerSources |
protected int |
solidIconIndex |
protected int |
standardIconIndex |
| Constructor and Description |
|---|
PipePowerWood(net.minecraft.item.Item item) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConnectEnergy(net.minecraftforge.common.util.ForgeDirection from)
Returns TRUE if the TileEntity can connect on a given side.
|
boolean |
canConnectRedstoneEngine(net.minecraftforge.common.util.ForgeDirection side)
This function is queried on every attempt to receive energy from a
redstone engine as well.
|
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.
|
void |
getDebugInfo(java.util.List<java.lang.String> info,
net.minecraftforge.common.util.ForgeDirection side,
net.minecraft.item.ItemStack debugger,
net.minecraft.entity.player.EntityPlayer player)
Get the debug information from a tile entity as a list of strings,
usable with the BuildCraft Debugger.
|
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 |
readFromNBT(net.minecraft.nbt.NBTTagCompound data) |
int |
receiveEnergy(net.minecraftforge.common.util.ForgeDirection from,
int val)
Override default behavior on receiving energy into the pipe.
|
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.
|
int |
requestEnergy(net.minecraftforge.common.util.ForgeDirection from,
int amount)
Override default requested power.
|
void |
updateEntity() |
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound data) |
actionsActivated, blockActivated, canConnectRedstone, canPipeConnect, computeItemDrop, doDrop, dropContents, dropItem, getActions, getContainer, getDroppedItems, getGate, getIconIndexForItem, getMaxRedstoneOutput, getOpenOrientation, getTile, getWorld, hasGate, hasGate, initialize, inputOpen, invalidate, isIndirectlyPoweringTo, isInitialized, isPoweringTo, isWireActive, isWireConnectedTo, isWired, notifyBlocksOfNeighborChange, onBlockPlaced, onBlockPlacedBy, onChunkUnload, onEntityCollidedWithBlock, onNeighborBlockChange, outputOpen, randomDisplayTick, resetGates, resolveActions, setTile, updateNeighbors, updateSignalState, validatepublic final boolean[] powerSources
protected int standardIconIndex
protected int solidIconIndex
protected RFBattery battery
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 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 int receiveEnergy(net.minecraftforge.common.util.ForgeDirection from,
int val)
IPipeTransportPowerHookreceiveEnergy in interface IPipeTransportPowerHookpublic int requestEnergy(net.minecraftforge.common.util.ForgeDirection from,
int amount)
IPipeTransportPowerHookrequestEnergy in interface IPipeTransportPowerHookpublic 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 boolean canConnectRedstoneEngine(net.minecraftforge.common.util.ForgeDirection side)
IRedstoneEngineReceivercanConnectRedstoneEngine in interface IRedstoneEngineReceiverpublic void getDebugInfo(java.util.List<java.lang.String> info,
net.minecraftforge.common.util.ForgeDirection side,
net.minecraft.item.ItemStack debugger,
net.minecraft.entity.player.EntityPlayer player)
IDebuggablegetDebugInfo in interface IDebuggableinfo - The List debug strings should be output to.side - The side of the tile.debugger - The debugger ItemStack used.player - The player querying the debug information.