public class PipeItemsWood extends Pipe<PipeTransportItems> implements IEnergyHandler
| Modifier and Type | Field and Description |
|---|---|
protected RFBattery |
battery |
protected int |
solidIconIndex |
protected float |
speedMultiplier |
protected int |
standardIconIndex |
| Constructor and Description |
|---|
PipeItemsWood(net.minecraft.item.Item item) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
blockActivated(net.minecraft.entity.player.EntityPlayer entityplayer) |
boolean |
canConnectEnergy(net.minecraftforge.common.util.ForgeDirection from)
Returns TRUE if the TileEntity can connect on a given side.
|
net.minecraft.item.ItemStack[] |
checkExtract(net.minecraft.inventory.IInventory inventory,
boolean doRemove,
net.minecraftforge.common.util.ForgeDirection from)
Return the itemstack that can be if something can be extracted from this
inventory, null if none.
|
net.minecraft.item.ItemStack |
checkExtractGeneric(net.minecraft.inventory.IInventory inventory,
boolean doRemove,
net.minecraftforge.common.util.ForgeDirection from) |
net.minecraft.item.ItemStack |
checkExtractGeneric(net.minecraft.inventory.ISidedInventory inventory,
boolean doRemove,
net.minecraftforge.common.util.ForgeDirection from) |
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 |
initialize() |
protected TravelingItem |
makeItem(double x,
double y,
double z,
net.minecraft.item.ItemStack stack) |
void |
onNeighborBlockChange(int blockId) |
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, canConnectRedstone, canPipeConnect, computeItemDrop, doDrop, dropContents, dropItem, getActions, getContainer, getDroppedItems, getGate, getIconIndexForItem, getMaxRedstoneOutput, getOpenOrientation, getTile, getWorld, hasGate, hasGate, inputOpen, invalidate, isIndirectlyPoweringTo, isInitialized, isPoweringTo, isWireActive, isWireConnectedTo, isWired, notifyBlocksOfNeighborChange, onBlockPlaced, onBlockPlacedBy, onChunkUnload, onEntityCollidedWithBlock, outputOpen, randomDisplayTick, readFromNBT, resetGates, resolveActions, setTile, updateNeighbors, updateSignalState, validate, writeToNBTprotected RFBattery battery
protected int standardIconIndex
protected int solidIconIndex
protected float speedMultiplier
public boolean blockActivated(net.minecraft.entity.player.EntityPlayer entityplayer)
blockActivated in class Pipe<PipeTransportItems>public void onNeighborBlockChange(int blockId)
onNeighborBlockChange in class Pipe<PipeTransportItems>public void initialize()
initialize in class Pipe<PipeTransportItems>public 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 updateEntity()
updateEntity in class Pipe<PipeTransportItems>protected TravelingItem makeItem(double x, double y, double z, net.minecraft.item.ItemStack stack)
public net.minecraft.item.ItemStack[] checkExtract(net.minecraft.inventory.IInventory inventory,
boolean doRemove,
net.minecraftforge.common.util.ForgeDirection from)
public net.minecraft.item.ItemStack checkExtractGeneric(net.minecraft.inventory.IInventory inventory,
boolean doRemove,
net.minecraftforge.common.util.ForgeDirection from)
public net.minecraft.item.ItemStack checkExtractGeneric(net.minecraft.inventory.ISidedInventory inventory,
boolean doRemove,
net.minecraftforge.common.util.ForgeDirection from)
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