public class TileEntityHopper extends TileEntityLockableLoot implements IHopper, ITickable
customName, lootTable, lootTableSeedpos, removed, worldBLOCK_ABOVE_SHAPE, COLLECTION_AREA_SHAPE, INSIDE_BOWL_SHAPEINFINITE_EXTENT_AABB| Constructor and Description |
|---|
TileEntityHopper() |
checkLootAndRead, checkLootAndWrite, clear, closeInventory, fillWithLoot, getCustomName, getField, getFieldCount, getLootTable, getStackInSlot, hasCustomName, isItemValidForSlot, isUsableByPlayer, openInventory, removeStackFromSlot, setCustomName, setField, setLootTable, setLootTablegetCapability, getLockCode, isLocked, remove, setLockCodeaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorld, updateContainingBlockInfo, validateareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCollectionArea, getWorldclear, closeInventory, getField, getFieldCount, getHeight, getStackInSlot, getWidth, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeStackFromSlot, setFieldgetCustomName, getDisplayName, hasCustomNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT, shouldRenderInPassgetCapabilitypublic void read(NBTTagCompound compound)
read in class TileEntityLockablepublic NBTTagCompound write(NBTTagCompound compound)
write in class TileEntityLockablepublic int getSizeInventory()
getSizeInventory in interface IInventorypublic ItemStack decrStackSize(int index, int count)
decrStackSize in interface IInventorydecrStackSize in class TileEntityLockableLootpublic void setInventorySlotContents(int index,
ItemStack stack)
setInventorySlotContents in interface IInventorysetInventorySlotContents in class TileEntityLockableLootpublic ITextComponent getName()
public int getInventoryStackLimit()
getInventoryStackLimit in interface IInventorypublic boolean isEmpty()
isEmpty in interface IInventorypublic 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 IInteractionObjectpublic Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
createContainer in interface IInteractionObjectprotected NonNullList<ItemStack> getItems()
getItems in class TileEntityLockableLootprotected void setItems(NonNullList<ItemStack> itemsIn)
setItems in class TileEntityLockableLootpublic void onEntityCollision(Entity p_200113_1_)
protected IItemHandler createUnSidedHandler()
createUnSidedHandler in class TileEntityLockablepublic long getLastUpdateTime()