public class HopperTileEntity extends LockableLootTileEntity implements IHopper, ITickableTileEntity
lootTable, lootTableSeed
pos, removed, world
BLOCK_ABOVE_SHAPE, COLLECTION_AREA_SHAPE, INSIDE_BOWL_SHAPE
INFINITE_EXTENT_AABB
Constructor and Description |
---|
HopperTileEntity() |
canOpen, checkLootAndRead, checkLootAndWrite, clear, createMenu, fillWithLoot, getStackInSlot, isUsableByPlayer, removeStackFromSlot, setLootTable, setLootTable
canUnlock, getCapability, getCustomName, getDisplayName, getName, remove, setCustomName
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, rotate, setPos, setWorld, updateContainingBlockInfo, validate, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCollectionArea, getWorld
closeInventory, count, getInventoryStackLimit, getStackInSlot, hasAny, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeStackFromSlot
clear, clearObj
hasCustomName
canRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
getCapability
public void read(CompoundNBT compound)
read
in class LockableTileEntity
public CompoundNBT write(CompoundNBT compound)
write
in class LockableTileEntity
public int getSizeInventory()
getSizeInventory
in interface IInventory
public ItemStack decrStackSize(int index, int count)
decrStackSize
in interface IInventory
decrStackSize
in class LockableLootTileEntity
public void setInventorySlotContents(int index, ItemStack stack)
setInventorySlotContents
in interface IInventory
setInventorySlotContents
in class LockableLootTileEntity
protected ITextComponent getDefaultName()
getDefaultName
in class LockableTileEntity
public void tick()
tick
in interface ITickableTileEntity
public boolean isEmpty()
isEmpty
in interface IInventory
public 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 LockableLootTileEntity
protected void setItems(NonNullList<ItemStack> itemsIn)
setItems
in class LockableLootTileEntity
public void onEntityCollision(Entity p_200113_1_)
protected Container createMenu(int id, PlayerInventory player)
createMenu
in class LockableTileEntity
protected IItemHandler createUnSidedHandler()
createUnSidedHandler
in class LockableTileEntity
public long getLastUpdateTime()