public class TileEntityHopper extends TileEntityLockableLoot implements IHopper, ITickable
customName, lootTable, lootTableSeed
blockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, world
Constructor and Description |
---|
TileEntityHopper() |
checkLootAndRead, checkLootAndWrite, clear, closeInventory, fillWithLoot, getField, getFieldCount, getLootTable, getStackInSlot, hasCustomName, isItemValidForSlot, isUsableByPlayer, openInventory, removeStackFromSlot, setCustomName, setField, setLootTable
getCapability, getDisplayName, getLockCode, hasCapability, isLocked, setLockCode
addInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getUpdatePacket, getUpdateTag, getWorld, handleUpdateTag, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onDataPacket, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, closeInventory, getField, getFieldCount, getStackInSlot, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeStackFromSlot, setField
getDisplayName, hasCustomName
public static void registerFixesHopper(DataFixer fixer)
public void readFromNBT(NBTTagCompound compound)
readFromNBT
in class TileEntityLockable
public NBTTagCompound writeToNBT(NBTTagCompound compound)
writeToNBT
in class TileEntityLockable
public int getSizeInventory()
getSizeInventory
in interface IInventory
public ItemStack decrStackSize(int index, int count)
decrStackSize
in interface IInventory
decrStackSize
in class TileEntityLockableLoot
public void setInventorySlotContents(int index, ItemStack stack)
setInventorySlotContents
in interface IInventory
setInventorySlotContents
in class TileEntityLockableLoot
public java.lang.String getName()
getName
in interface IWorldNameable
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
protected boolean updateHopper()
public boolean isEmpty()
isEmpty
in interface IInventory
public static boolean pullItems(IHopper hopper)
public static boolean putDropInInventoryAllSlots(IInventory source, IInventory destination, EntityItem entity)
protected IItemHandler createUnSidedHandler()
createUnSidedHandler
in class TileEntityLockable
public static ItemStack putStackInInventoryAllSlots(IInventory source, IInventory destination, ItemStack stack, @Nullable EnumFacing direction)
public static IInventory getSourceInventory(IHopper hopper)
public static java.util.List<EntityItem> getCaptureItems(World worldIn, double p_184292_1_, double p_184292_3_, double p_184292_5_)
public static IInventory getInventoryAtPosition(World worldIn, double x, double y, double z)
public void setTransferCooldown(int ticks)
public boolean mayTransfer()
public java.lang.String getGuiID()
getGuiID
in interface IInteractionObject
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
createContainer
in interface IInteractionObject
protected NonNullList<ItemStack> getItems()
getItems
in class TileEntityLockableLoot
public long getLastUpdateTime()