public class RobotStationPluggable extends PipePluggable implements IPipePluggableItem, IEnergyReceiver, IDebuggable, IDockingStationProvider
| Modifier and Type | Class and Description |
|---|---|
class |
RobotStationPluggable.RobotStationPluggableRenderer |
static class |
RobotStationPluggable.RobotStationState |
| Constructor and Description |
|---|
RobotStationPluggable() |
| 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.
|
PipePluggable |
createPipePluggable(IPipe pipe,
net.minecraftforge.common.util.ForgeDirection side,
net.minecraft.item.ItemStack stack) |
net.minecraft.util.AxisAlignedBB |
getBoundingBox(net.minecraftforge.common.util.ForgeDirection side) |
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.
|
net.minecraft.item.ItemStack[] |
getDropItems(IPipeTile pipe) |
int |
getEnergyStored(net.minecraftforge.common.util.ForgeDirection from)
Returns the amount of energy currently stored.
|
int |
getMaxEnergyStored(net.minecraftforge.common.util.ForgeDirection from)
Returns the maximum amount of energy that can be stored.
|
IPipePluggableRenderer |
getRenderer() |
RobotStationPluggable.RobotStationState |
getRenderState() |
DockingStation |
getStation() |
void |
invalidate() |
boolean |
isBlocking(IPipeTile pipe,
net.minecraftforge.common.util.ForgeDirection direction) |
void |
readData(io.netty.buffer.ByteBuf data)
Deserializes the state from the stream
|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
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.
|
boolean |
requiresRenderUpdate(PipePluggable o) |
void |
validate(IPipeTile pipe,
net.minecraftforge.common.util.ForgeDirection direction) |
void |
writeData(io.netty.buffer.ByteBuf data)
Serializes the state to the stream
|
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
getDynamicRenderer, isSolidOnSide, onAttachedPipe, onDetachedPipe, updatepublic void writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBT in interface INBTStoreablepublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT in interface INBTStoreablepublic net.minecraft.item.ItemStack[] getDropItems(IPipeTile pipe)
getDropItems in class PipePluggablepublic DockingStation getStation()
getStation in interface IDockingStationProviderpublic boolean isBlocking(IPipeTile pipe, net.minecraftforge.common.util.ForgeDirection direction)
isBlocking in class PipePluggablepublic void invalidate()
invalidate in class PipePluggablepublic void validate(IPipeTile pipe, net.minecraftforge.common.util.ForgeDirection direction)
validate in class PipePluggablepublic net.minecraft.util.AxisAlignedBB getBoundingBox(net.minecraftforge.common.util.ForgeDirection side)
getBoundingBox in class PipePluggablepublic RobotStationPluggable.RobotStationState getRenderState()
public IPipePluggableRenderer getRenderer()
getRenderer in class PipePluggablepublic void writeData(io.netty.buffer.ByteBuf data)
ISerializablewriteData in interface ISerializablepublic boolean requiresRenderUpdate(PipePluggable o)
requiresRenderUpdate in class PipePluggablepublic void readData(io.netty.buffer.ByteBuf data)
ISerializablereadData in interface ISerializablepublic PipePluggable createPipePluggable(IPipe pipe, net.minecraftforge.common.util.ForgeDirection side, net.minecraft.item.ItemStack stack)
createPipePluggable in interface IPipePluggableItempublic int receiveEnergy(net.minecraftforge.common.util.ForgeDirection from,
int maxReceive,
boolean simulate)
IEnergyReceiverreceiveEnergy 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 getEnergyStored(net.minecraftforge.common.util.ForgeDirection from)
IEnergyReceivergetEnergyStored in interface IEnergyReceiverpublic int getMaxEnergyStored(net.minecraftforge.common.util.ForgeDirection from)
IEnergyReceivergetMaxEnergyStored in interface IEnergyReceiverpublic boolean canConnectEnergy(net.minecraftforge.common.util.ForgeDirection from)
IEnergyConnectioncanConnectEnergy in interface IEnergyConnectionpublic 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.