public class PowerAdapterPluggable extends PipePluggable implements IEnergyHandler
| Modifier and Type | Class and Description |
|---|---|
class |
PowerAdapterPluggable.PowerAdapterPluggableRenderer |
| Constructor and Description |
|---|
PowerAdapterPluggable() |
| 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.
|
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.
|
net.minecraft.util.AxisAlignedBB |
getBoundingBox(net.minecraftforge.common.util.ForgeDirection side) |
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() |
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.
|
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, requiresRenderUpdate, updatepublic void validate(IPipeTile pipe, net.minecraftforge.common.util.ForgeDirection direction)
validate in class PipePluggablepublic void invalidate()
invalidate in class PipePluggablepublic 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 boolean isBlocking(IPipeTile pipe, net.minecraftforge.common.util.ForgeDirection direction)
isBlocking in class PipePluggablepublic net.minecraft.util.AxisAlignedBB getBoundingBox(net.minecraftforge.common.util.ForgeDirection side)
getBoundingBox in class PipePluggablepublic IPipePluggableRenderer getRenderer()
getRenderer in class PipePluggablepublic void writeData(io.netty.buffer.ByteBuf data)
ISerializablewriteData in interface ISerializablepublic void readData(io.netty.buffer.ByteBuf data)
ISerializablereadData in interface ISerializablepublic 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 canConnectEnergy(net.minecraftforge.common.util.ForgeDirection from)
IEnergyConnectioncanConnectEnergy in interface IEnergyConnection