net.minecraft.world.level.block.entity

public class HopperBlockEntity

extends RandomizableContainerBlockEntity implements Hopper

All mapped superinterfaces:

Container, Clearable, MenuProvider, MenuConstructor, Nameable, RandomizableContainer, Hopper

dyi
net.minecraft.world.level.block.entity.HopperBlockEntity
net.minecraft.class_2614
net.minecraft.unmapped.C_nblomyyt
net.minecraft.block.entity.HopperBlockEntity
net.minecraft.block.entity.HopperBlockEntity

Field summary

Modifier and TypeField
public static final int
d
MOVE_ITEM_SPEED
field_31341
f_iqqzslts
TRANSFER_COOLDOWN
ITEM_MOVE_SPEED
public static final int
e
HOPPER_CONTAINER_SIZE
field_31342
f_hcniobcr
INVENTORY_SIZE
SLOTS
private static final int[][]
f
CACHED_SLOTS
field_49100
f_ntpbqxdl
AVAILABLE_SLOTS_CACHE
AVAILABLE_SLOTS_CACHE
private NonNullList<ItemStack>
g
items
field_12024
f_ktuvlsrj
inventory
inventory
private int
h
cooldownTime
field_12023
f_azmfqpby
transferCooldown
transferCooldown
private long
i
tickedGameTime
field_12022
f_xxttfkhd
lastTickTime
lastTickTime
private Direction
j
facing
field_49101
f_aailrvke
facing
direction

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
protected void
a(tz arg0, jg$a arg1)
loadAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11014(class_2487 arg0, class_7225$class_7874 arg1)
m_trzmaydr(C_hhlwcnih arg0, C_vtbxyypo$C_etmlgbig arg1)
readNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
readNbtImpl(NbtCompound arg0, HolderLookup$Provider arg1)
protected void
b(tz arg0, jg$a arg1)
saveAdditional(CompoundTag arg0, HolderLookup$Provider arg1)
method_11007(class_2487 arg0, class_7225$class_7874 arg1)
m_qopnimsa(C_hhlwcnih arg0, C_vtbxyypo$C_etmlgbig arg1)
writeNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
writeNbt(NbtCompound arg0, HolderLookup$Provider arg1)
public int
b()
getContainerSize()
method_5439()
m_dmbfvefd()
size()
size()
public ItemStack
a(int arg0, int arg1)
removeItem(int arg0, int arg1)
method_5434(int arg0, int arg1)
m_jqhmcoxx(int arg0, int arg1)
removeStack(int arg0, int arg1)
removeStack(int arg0, int arg1)
public void
a(int arg0, czd arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
m_akaynoad(int arg0, C_sddaxwyk arg1)
setStack(int arg0, ItemStack arg1)
setStack(int arg0, ItemStack arg1)
public void
c(eah arg0)
setBlockState(BlockState arg0)
method_31664(class_2680 arg0)
m_jszkmdfp(C_txtbiemp arg0)
setCachedState(BlockState arg0)
setCachedState(BlockState arg0)
protected Component
j()
getDefaultName()
method_17823()
m_egjsjpyi()
getContainerName()
getContainerName()
public static void
a(dja arg0, iu arg1, eah arg2, dyi arg3)
pushItemsTick(Level arg0, BlockPos arg1, BlockState arg2, HopperBlockEntity arg3)
method_31692(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2614 arg3)
m_jkirpeqb(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2, C_nblomyyt arg3)
serverTick(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity)
serverTick(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity)
private static boolean
a(dja arg0, iu arg1, eah arg2, dyi arg3, BooleanSupplier arg4)
tryMoveItems(Level arg0, BlockPos arg1, BlockState arg2, HopperBlockEntity arg3, BooleanSupplier arg4)
method_11243(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2614 arg3, BooleanSupplier arg4)
m_jgmuxsor(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2, C_nblomyyt arg3, BooleanSupplier arg4)
insertAndExtract(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity, BooleanSupplier arg4)
insertAndExtract(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity, BooleanSupplier addCooldown)
private boolean
k()
inventoryFull()
method_11256()
m_vzdmljjn()
isFull()
isFull()
private static boolean
a(dja arg0, iu arg1, dyi arg2)
ejectItems(Level arg0, BlockPos arg1, HopperBlockEntity arg2)
method_11246(class_1937 arg0, class_2338 arg1, class_2614 arg2)
m_rnqdnnfm(C_cdctfzbn arg0, C_hynzadkk arg1, C_nblomyyt arg2)
insert(World world, BlockPos pos, HopperBlockEntity blockEntity)
insert(World world, BlockPos pos, HopperBlockEntity blockEntity)
private static int[]
a(btw arg0, ja arg1)
getSlots(Container arg0, Direction arg1)
method_17767(class_1263 arg0, class_2350 arg1)
m_fqxkpglv(C_pjtstjoq arg0, C_xpuuihxf arg1)
getAvailableSlots(Inventory inventory, Direction side)
getAvailableSlots(Inventory inventory, Direction side)
private static int[]
c(int arg0)
createFlatSlots(int arg0)
method_57011(int arg0)
m_keejzcsu(int arg0)
indexArray(int size)
createSlotIndices(int size)
private static boolean
b(btw arg0, ja arg1)
isFullContainer(Container arg0, Direction arg1)
method_11258(class_1263 arg0, class_2350 arg1)
m_zwwjuamk(C_pjtstjoq arg0, C_xpuuihxf arg1)
isInventoryFull(Inventory inventory, Direction direction)
isInventoryFull(Inventory inventory, Direction direction)
public static boolean
a(dja arg0, dyh arg1)
suckInItems(Level arg0, Hopper arg1)
method_11241(class_1937 arg0, class_2615 arg1)
m_kpvuhija(C_cdctfzbn arg0, C_exiahbos arg1)
extract(World world, Hopper hopper)
extract(World world, HopperInventory hopper)
private static boolean
a(dyh arg0, btw arg1, int arg2, ja arg3)
tryTakeInItemFromSlot(Hopper arg0, Container arg1, int arg2, Direction arg3)
method_11261(class_2615 arg0, class_1263 arg1, int arg2, class_2350 arg3)
m_daivdovh(C_exiahbos arg0, C_pjtstjoq arg1, int arg2, C_xpuuihxf arg3)
extract(Hopper hopper, Inventory inventory, int slot, Direction side)
extract(HopperInventory hopper, Inventory inventory, int slot, Direction side)
public static boolean
a(btw arg0, cnh arg1)
addItem(Container arg0, ItemEntity arg1)
method_11247(class_1263 arg0, class_1542 arg1)
m_jyzhdben(C_pjtstjoq arg0, C_uqpzijng arg1)
extract(Inventory inventory, ItemEntity itemEntity)
extract(Inventory inventory, ItemEntity itemEntity)
public static ItemStack
a(btw arg0, btw arg1, czd arg2, ja arg3)
addItem(Container arg0, Container arg1, ItemStack arg2, Direction arg3)
method_11260(class_1263 arg0, class_1263 arg1, class_1799 arg2, class_2350 arg3)
m_smhbtkii(C_pjtstjoq arg0, C_pjtstjoq arg1, C_sddaxwyk arg2, C_xpuuihxf arg3)
transfer(Inventory from, Inventory to, ItemStack stack, Direction side)
transfer(Inventory from, Inventory to, ItemStack stack, Direction side)
private static boolean
a(btw arg0, czd arg1, int arg2, ja arg3)
canPlaceItemInContainer(Container arg0, ItemStack arg1, int arg2, Direction arg3)
method_11244(class_1263 arg0, class_1799 arg1, int arg2, class_2350 arg3)
m_yfttzfgx(C_pjtstjoq arg0, C_sddaxwyk arg1, int arg2, C_xpuuihxf arg3)
canInsert(Inventory inventory, ItemStack stack, int slot, Direction side)
canInsert(Inventory inventory, ItemStack stack, int slot, Direction side)
private static boolean
a(btw arg0, btw arg1, czd arg2, int arg3, ja arg4)
canTakeItemFromContainer(Container arg0, Container arg1, ItemStack arg2, int arg3, Direction arg4)
method_11252(class_1263 arg0, class_1263 arg1, class_1799 arg2, int arg3, class_2350 arg4)
m_tmplyjcc(C_pjtstjoq arg0, C_pjtstjoq arg1, C_sddaxwyk arg2, int arg3, C_xpuuihxf arg4)
canExtract(Inventory hopperInventory, Inventory fromInventory, ItemStack stack, int slot, Direction facing)
canExtract(Inventory to, Inventory from, ItemStack stack, int slot, Direction facing)
private static ItemStack
b(btw arg0, btw arg1, czd arg2, int arg3, ja arg4)
tryMoveInItem(Container arg0, Container arg1, ItemStack arg2, int arg3, Direction arg4)
method_11253(class_1263 arg0, class_1263 arg1, class_1799 arg2, int arg3, class_2350 arg4)
m_aedokznd(C_pjtstjoq arg0, C_pjtstjoq arg1, C_sddaxwyk arg2, int arg3, C_xpuuihxf arg4)
transfer(Inventory from, Inventory to, ItemStack stack, int slot, Direction side)
transfer(Inventory from, Inventory to, ItemStack stack, int slot, Direction side)
private static Container
b(dja arg0, iu arg1, dyi arg2)
getAttachedContainer(Level arg0, BlockPos arg1, HopperBlockEntity arg2)
method_11255(class_1937 arg0, class_2338 arg1, class_2614 arg2)
m_sqzuavxi(C_cdctfzbn arg0, C_hynzadkk arg1, C_nblomyyt arg2)
getOutputInventory(World world, BlockPos pos, HopperBlockEntity blockEntity)
findOutputInventory(World world, BlockPos pos, HopperBlockEntity blockEntity)
private static Container
a(dja arg0, dyh arg1, iu arg2, eah arg3)
getSourceContainer(Level arg0, Hopper arg1, BlockPos arg2, BlockState arg3)
method_11248(class_1937 arg0, class_2615 arg1, class_2338 arg2, class_2680 arg3)
m_opbelxmy(C_cdctfzbn arg0, C_exiahbos arg1, C_hynzadkk arg2, C_txtbiemp arg3)
getInputInventory(World world, Hopper hopper, BlockPos pos, BlockState state)
findInputInventory(World world, HopperInventory hopper, BlockPos pos, BlockState state)
public static List<ItemEntity>
b(dja arg0, dyh arg1)
getItemsAtAndAbove(Level arg0, Hopper arg1)
method_11237(class_1937 arg0, class_2615 arg1)
m_imdwtouv(C_cdctfzbn arg0, C_exiahbos arg1)
getInputItemEntities(World world, Hopper hopper)
findInputItemEntities(World world, HopperInventory hopper)
public static Container
a(dja arg0, iu arg1)
getContainerAt(Level arg0, BlockPos arg1)
method_11250(class_1937 arg0, class_2338 arg1)
m_spdazaxi(C_cdctfzbn arg0, C_hynzadkk arg1)
getInventoryAt(World world, BlockPos pos)
findInventory(World world, BlockPos pos)
private static Container
a(dja arg0, iu arg1, eah arg2, double arg3, double arg4, double arg5)
getContainerAt(Level arg0, BlockPos arg1, BlockState arg2, double arg3, double arg4, double arg5)
method_11251(class_1937 arg0, class_2338 arg1, class_2680 arg2, double arg3, double arg4, double arg5)
m_nwcnbnxg(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2, double arg3, double arg4, double arg5)
getInventoryAt(World world, BlockPos pos, BlockState state, double x, double y, double z)
findInventory(World world, BlockPos pos, BlockState state, double x, double y, double z)
private static Container
b(dja arg0, iu arg1, eah arg2)
getBlockContainer(Level arg0, BlockPos arg1, BlockState arg2)
method_57010(class_1937 arg0, class_2338 arg1, class_2680 arg2)
m_ygjmxzlx(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2)
getBlockInventoryAt(World world, BlockPos pos, BlockState state)
findBlockInventory(World world, BlockPos pos, BlockState state)
private static Container
a(dja arg0, double arg1, double arg2, double arg3)
getEntityContainer(Level arg0, double arg1, double arg2, double arg3)
method_57009(class_1937 arg0, double arg1, double arg2, double arg3)
m_wilrgnln(C_cdctfzbn arg0, double arg1, double arg2, double arg3)
getEntityInventoryAt(World world, double x, double y, double z)
findRandomEntityInventory(World world, double x, double y, double z)
private static boolean
a(czd arg0, czd arg1)
canMergeItems(ItemStack arg0, ItemStack arg1)
method_11254(class_1799 arg0, class_1799 arg1)
m_wobetygt(C_sddaxwyk arg0, C_sddaxwyk arg1)
canMergeItems(ItemStack first, ItemStack second)
canMergeItems(ItemStack first, ItemStack second)
public double
C()
getLevelX()
method_11266()
m_pjssfdux()
getHopperX()
getHopperX()
public double
D()
getLevelY()
method_11264()
m_gymptxwt()
getHopperY()
getHopperY()
public double
E()
getLevelZ()
method_11265()
m_jckyrqkq()
getHopperZ()
getHopperZ()
public boolean
F()
isGridAligned()
method_57081()
m_gdmbveav()
canBlockFromAbove()
isBlockable()
private void
d(int arg0)
setCooldown(int arg0)
method_11238(int arg0)
m_zawzrfob(int arg0)
setTransferCooldown(int transferCooldown)
setCooldown(int cooldown)
private boolean
s()
isOnCooldown()
method_11239()
m_casyzsyb()
needsCooldown()
needsCooldown()
private boolean
t()
isOnCustomCooldown()
method_11242()
m_oshxfkng()
isDisabled()
isDisabled()
protected NonNullList<ItemStack>
f()
getItems()
method_11282()
m_drxlwzcv()
getHeldStacks()
getInventory()
protected void
a(jn<czd> arg0)
setItems(NonNullList<ItemStack> arg0)
method_11281(class_2371<class_1799> arg0)
m_nnlaacjo(C_rnrfftze<C_sddaxwyk> arg0)
setHeldStacks(DefaultedList<ItemStack> arg0)
setInventory(DefaultedList<ItemStack> arg0)
public static void
a(dja arg0, iu arg1, eah arg2, bwf arg3, dyi arg4)
entityInside(Level arg0, BlockPos arg1, BlockState arg2, Entity arg3, HopperBlockEntity arg4)
method_11236(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1297 arg3, class_2614 arg4)
m_armjrcnb(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2, C_astfners arg3, C_nblomyyt arg4)
onEntityCollided(World world, BlockPos pos, BlockState state, Entity entity, HopperBlockEntity blockEntity)
onEntityCollided(World world, BlockPos pos, BlockState state, Entity entity, HopperBlockEntity blockEntity)
protected AbstractContainerMenu
a(int arg0, crb arg1)
createMenu(int arg0, Inventory arg1)
method_5465(int arg0, class_1661 arg1)
m_zoafdewc(int arg0, C_sxzqocrm arg1)
createScreenHandler(int arg0, PlayerInventory arg1)
createScreenHandler(int arg0, PlayerInventory arg1)