public class TileEntityHopper extends TileEntityLockableLoot implements IHopper, ITickable
customName, lootTable, lootTableSeed
pos, removed, world
BLOCK_ABOVE_SHAPE, COLLECTION_AREA_SHAPE, INSIDE_BOWL_SHAPE
INFINITE_EXTENT_AABB
Constructor and Description |
---|
TileEntityHopper() |
checkLootAndRead, checkLootAndWrite, clear, closeInventory, fillWithLoot, getCustomName, getField, getFieldCount, getLootTable, getStackInSlot, hasCustomName, isItemValidForSlot, isUsableByPlayer, openInventory, removeStackFromSlot, setCustomName, setField, setLootTable, setLootTable
getCapability, getLockCode, isLocked, remove, setLockCode
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorld, updateContainingBlockInfo, validate
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCollectionArea, getWorld
clear, closeInventory, getField, getFieldCount, getHeight, getStackInSlot, getWidth, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeStackFromSlot, setField
getCustomName, getDisplayName, hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT, shouldRenderInPass
getCapability
public void read(NBTTagCompound compound)
read
in class TileEntityLockable
public NBTTagCompound write(NBTTagCompound compound)
write
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 ITextComponent getName()
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
public boolean isEmpty()
isEmpty
in interface IInventory
public static boolean pullItems(IHopper hopper)
public static boolean captureItem(IInventory p_200114_0_, EntityItem p_200114_1_)
public static ItemStack putStackInInventoryAllSlots(@Nullable IInventory source, IInventory destination, ItemStack stack, @Nullable EnumFacing direction)
@Nullable public static IInventory getSourceInventory(IHopper hopper)
public static java.util.List<EntityItem> getCaptureItems(IHopper p_200115_0_)
@Nullable public static IInventory getInventoryAtPosition(World p_195484_0_, BlockPos p_195484_1_)
@Nullable 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
protected void setItems(NonNullList<ItemStack> itemsIn)
setItems
in class TileEntityLockableLoot
public void onEntityCollision(Entity p_200113_1_)
protected IItemHandler createUnSidedHandler()
createUnSidedHandler
in class TileEntityLockable
public long getLastUpdateTime()