public class HopperTileEntity extends LockableLootTileEntity implements IHopper, ITickableTileEntity
lootTable, lootTableSeedpos, removed, worldBLOCK_ABOVE_SHAPE, COLLECTION_AREA_SHAPE, INSIDE_BOWL_SHAPEINFINITE_EXTENT_AABB| Constructor and Description |
|---|
HopperTileEntity() |
canOpen, checkLootAndRead, checkLootAndWrite, clear, createMenu, fillWithLoot, getStackInSlot, isUsableByPlayer, removeStackFromSlot, setLootTable, setLootTablecanUnlock, getCapability, getCustomName, getDisplayName, getName, remove, setCustomNameaddInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorld, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCollectionArea, getWorldcloseInventory, count, getInventoryStackLimit, getStackInSlot, hasAny, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeStackFromSlotclear, clearObjhasCustomNamecanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapabilitypublic void read(CompoundNBT compound)
read in class LockableTileEntitypublic CompoundNBT write(CompoundNBT compound)
write in class LockableTileEntitypublic int getSizeInventory()
getSizeInventory in interface IInventorypublic ItemStack decrStackSize(int index, int count)
decrStackSize in interface IInventorydecrStackSize in class LockableLootTileEntitypublic void setInventorySlotContents(int index,
ItemStack stack)
setInventorySlotContents in interface IInventorysetInventorySlotContents in class LockableLootTileEntityprotected ITextComponent getDefaultName()
getDefaultName in class LockableTileEntitypublic void tick()
tick in interface ITickableTileEntitypublic boolean isEmpty()
isEmpty in interface IInventorypublic static boolean pullItems(IHopper hopper)
public static boolean captureItem(IInventory p_200114_0_, ItemEntity p_200114_1_)
public static ItemStack putStackInInventoryAllSlots(@Nullable IInventory source, IInventory destination, ItemStack stack, @Nullable Direction direction)
@Nullable public static IInventory getSourceInventory(IHopper hopper)
public static java.util.List<ItemEntity> 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()
protected NonNullList<ItemStack> getItems()
getItems in class LockableLootTileEntityprotected void setItems(NonNullList<ItemStack> itemsIn)
setItems in class LockableLootTileEntitypublic void onEntityCollision(Entity p_200113_1_)
protected Container createMenu(int id, PlayerInventory player)
createMenu in class LockableTileEntityprotected IItemHandler createUnSidedHandler()
createUnSidedHandler in class LockableTileEntitypublic long getLastUpdateTime()