public abstract class MultiblockTileEntityForestry<T extends IMultiblockLogic> extends MultiblockTileEntityBase<T> implements net.minecraft.inventory.ISidedInventory, IFilterSlotDelegate, ILocatable, IGuiHandlerTile
IMultiblockComponent.HasInventory| Constructor and Description |
|---|
MultiblockTileEntityForestry(T multiblockLogic) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsAutomation() |
boolean |
canExtractItem(int slotIndex,
net.minecraft.item.ItemStack itemStack,
net.minecraft.util.EnumFacing side) |
boolean |
canInsertItem(int slotIndex,
net.minecraft.item.ItemStack itemStack,
net.minecraft.util.EnumFacing side) |
boolean |
canSlotAccept(int slotIndex,
net.minecraft.item.ItemStack itemStack)
Non-automation version of IInventory's isItemValidForSlot.
|
void |
clear() |
void |
closeInventory(net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.item.ItemStack |
decrStackSize(int slotIndex,
int amount) |
net.minecraft.util.text.ITextComponent |
getDisplayName() |
int |
getField(int id) |
int |
getFieldCount() |
IInventoryAdapter |
getInternalInventory() |
int |
getInventoryStackLimit() |
java.lang.String |
getName() |
com.mojang.authlib.GameProfile |
getOwner() |
int |
getSizeInventory() |
int[] |
getSlotsForFace(net.minecraft.util.EnumFacing side) |
net.minecraft.item.ItemStack |
getStackInSlot(int slotIndex) |
net.minecraft.world.World |
getWorldObj() |
boolean |
hasCustomName() |
boolean |
isEmpty() |
boolean |
isItemValidForSlot(int slotIndex,
net.minecraft.item.ItemStack itemStack) |
boolean |
isLocked(int slotIndex)
Used to lock slots under special conditions.
|
boolean |
isUsableByPlayer(net.minecraft.entity.player.EntityPlayer player) |
void |
openGui(net.minecraft.entity.player.EntityPlayer player)
Called by a structure block when it is right clicked by a player.
|
void |
openInventory(net.minecraft.entity.player.EntityPlayer player) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound data) |
net.minecraft.item.ItemStack |
removeStackFromSlot(int slotIndex) |
void |
setField(int id,
int value) |
void |
setInventorySlotContents(int slotIndex,
net.minecraft.item.ItemStack itemstack) |
void |
setOwner(com.mojang.authlib.GameProfile owner) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound data) |
decodeDescriptionPacket, encodeDescriptionPacket, getCoordinates, getMultiblockLogic, getUpdatePacket, getUpdateTag, handleUpdateTag, invalidate, onChunkUnload, onDataPacket, onMachineAssembled, onMachineBroken, validateaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getCapability, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasCapability, hasFastRenderer, hasWorld, isInvalid, markDirty, mirror, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContainer, getGuigetCoordinatespublic MultiblockTileEntityForestry(T multiblockLogic)
public void openGui(net.minecraft.entity.player.EntityPlayer player)
public void readFromNBT(net.minecraft.nbt.NBTTagCompound data)
readFromNBT in class MultiblockTileEntityBase<T extends IMultiblockLogic>public net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound data)
writeToNBT in class MultiblockTileEntityBase<T extends IMultiblockLogic>public IInventoryAdapter getInternalInventory()
public boolean allowsAutomation()
public boolean isEmpty()
isEmpty in interface net.minecraft.inventory.IInventorypublic final int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic final net.minecraft.item.ItemStack getStackInSlot(int slotIndex)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic final net.minecraft.item.ItemStack decrStackSize(int slotIndex,
int amount)
decrStackSize in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack removeStackFromSlot(int slotIndex)
removeStackFromSlot in interface net.minecraft.inventory.IInventorypublic final void setInventorySlotContents(int slotIndex,
net.minecraft.item.ItemStack itemstack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic final int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic final void openInventory(net.minecraft.entity.player.EntityPlayer player)
openInventory in interface net.minecraft.inventory.IInventorypublic final void closeInventory(net.minecraft.entity.player.EntityPlayer player)
closeInventory in interface net.minecraft.inventory.IInventorypublic final java.lang.String getName()
getName in interface net.minecraft.world.IWorldNameablepublic net.minecraft.util.text.ITextComponent getDisplayName()
getDisplayName in interface net.minecraft.world.IWorldNameablegetDisplayName in class net.minecraft.tileentity.TileEntitypublic final boolean isUsableByPlayer(net.minecraft.entity.player.EntityPlayer player)
isUsableByPlayer in interface net.minecraft.inventory.IInventorypublic final boolean hasCustomName()
hasCustomName in interface net.minecraft.world.IWorldNameablepublic final boolean isItemValidForSlot(int slotIndex,
net.minecraft.item.ItemStack itemStack)
isItemValidForSlot in interface net.minecraft.inventory.IInventorypublic int[] getSlotsForFace(net.minecraft.util.EnumFacing side)
getSlotsForFace in interface net.minecraft.inventory.ISidedInventorypublic final boolean canInsertItem(int slotIndex,
net.minecraft.item.ItemStack itemStack,
net.minecraft.util.EnumFacing side)
canInsertItem in interface net.minecraft.inventory.ISidedInventorypublic final boolean canExtractItem(int slotIndex,
net.minecraft.item.ItemStack itemStack,
net.minecraft.util.EnumFacing side)
canExtractItem in interface net.minecraft.inventory.ISidedInventorypublic final boolean canSlotAccept(int slotIndex,
net.minecraft.item.ItemStack itemStack)
IFilterSlotDelegateCombine this with Forestry's access permissions to implement isItemValidForSlot.
canSlotAccept in interface IFilterSlotDelegatepublic final boolean isLocked(int slotIndex)
IFilterSlotDelegateisLocked in interface IFilterSlotDelegatepublic final net.minecraft.world.World getWorldObj()
getWorldObj in interface ILocatable@Nullable public final com.mojang.authlib.GameProfile getOwner()
getOwner in interface IMultiblockComponentpublic final void setOwner(com.mojang.authlib.GameProfile owner)
public int getField(int id)
getField in interface net.minecraft.inventory.IInventorypublic int getFieldCount()
getFieldCount in interface net.minecraft.inventory.IInventorypublic void setField(int id,
int value)
setField in interface net.minecraft.inventory.IInventorypublic void clear()
clear in interface net.minecraft.inventory.IInventory