public class TileEntityHopper extends TileEntityLockableLoot implements IHopper, ITickable
lootTable, lootTableSeed
blockType, INFINITE_EXTENT_AABB, pos, tileEntityInvalid, worldObj
Constructor and Description |
---|
TileEntityHopper() |
checkLootAndRead, checkLootAndWrite, fillWithLoot, getLootTable, setLootTable
getCapability, getDisplayName, getLockCode, hasCapability, isLocked, setLockCode
addInfoToCrashReport, addMapping, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getUpdatePacket, getUpdateTag, getWorld, handleUpdateTag, hasFastRenderer, hasWorldObj, invalidate, isInvalid, markDirty, onChunkUnload, onDataPacket, onLoad, onlyOpsCanSetNbt, receiveClientEvent, restrictNBTCopy, serializeNBT, setPos, setWorldObj, shouldRefresh, shouldRenderInPass, updateContainingBlockInfo, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
markDirty
getDisplayName
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
@Nullable public ItemStack getStackInSlot(int index)
getStackInSlot
in interface IInventory
@Nullable public ItemStack decrStackSize(int index, int count)
decrStackSize
in interface IInventory
@Nullable public ItemStack removeStackFromSlot(int index)
removeStackFromSlot
in interface IInventory
public void setInventorySlotContents(int index, @Nullable ItemStack stack)
setInventorySlotContents
in interface IInventory
public java.lang.String getName()
getName
in interface IWorldNameable
public boolean hasCustomName()
hasCustomName
in interface IWorldNameable
public void setCustomName(java.lang.String customNameIn)
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
public boolean isUseableByPlayer(EntityPlayer player)
isUseableByPlayer
in interface IInventory
public void openInventory(EntityPlayer player)
openInventory
in interface IInventory
public void closeInventory(EntityPlayer player)
closeInventory
in interface IInventory
public boolean isItemValidForSlot(int index, ItemStack stack)
isItemValidForSlot
in interface IInventory
public boolean updateHopper()
public static boolean captureDroppedItems(IHopper hopper)
public static boolean putDropInInventoryAllSlots(IInventory p_145898_0_, EntityItem itemIn)
public static ItemStack putStackInInventoryAllSlots(IInventory inventoryIn, ItemStack stack, @Nullable EnumFacing side)
public static IInventory getHopperInventory(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 isOnTransferCooldown()
public boolean mayTransfer()
public java.lang.String getGuiID()
getGuiID
in interface IInteractionObject
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
createContainer
in interface IInteractionObject
public int getField(int id)
getField
in interface IInventory
public void setField(int id, int value)
setField
in interface IInventory
public int getFieldCount()
getFieldCount
in interface IInventory
public void clear()
clear
in interface IInventory
protected IItemHandler createUnSidedHandler()
createUnSidedHandler
in class TileEntityLockable