public class PipeItemsObsidian extends Pipe<PipeTransportItems> implements IEnergyHandler
| Constructor and Description |
|---|
PipeItemsObsidian(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 |
canSuck(net.minecraft.entity.Entity entity,
int distance) |
void |
eventHandler(PipeEventItem.DropItem event) |
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.
|
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 |
onEntityCollidedWithBlock(net.minecraft.entity.Entity entity) |
void |
pullItemIntoPipe(net.minecraft.entity.Entity entity,
int distance) |
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 |
updateEntity() |
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, onNeighborBlockChange, outputOpen, randomDisplayTick, readFromNBT, resetGates, resolveActions, setTile, updateNeighbors, updateSignalState, validate, writeToNBTpublic IIconProvider getIconProvider()
PipegetIconProvider in class Pipe<PipeTransportItems>public int getIconIndex(net.minecraftforge.common.util.ForgeDirection direction)
PipegetIconIndex in class Pipe<PipeTransportItems>direction - - The direction for which the indexed should be
rendered. Unknown for pipe centerpublic void onEntityCollidedWithBlock(net.minecraft.entity.Entity entity)
onEntityCollidedWithBlock in class Pipe<PipeTransportItems>public void updateEntity()
updateEntity in class Pipe<PipeTransportItems>public void pullItemIntoPipe(net.minecraft.entity.Entity entity,
int distance)
public void eventHandler(PipeEventItem.DropItem event)
public boolean canSuck(net.minecraft.entity.Entity entity,
int distance)
public 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 IEnergyReceiver