net.minecraft.world.level.block.entity

public class HopperBlockEntity

extends RandomizableContainerBlockEntity implements Hopper

All mapped superinterfaces:

Container, Clearable, MenuProvider, MenuConstructor, Nameable, Hopper

cua
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
net.minecraft.src.C_2010_
net.minecraft.world.level.block.entity.TileEntityHopper

Field summary

Modifier and TypeField
public static final int
c
MOVE_ITEM_SPEED
field_31341
f_iqqzslts
field_31341
ITEM_MOVE_SPEED
f_155547_
public static final int
f
HOPPER_CONTAINER_SIZE
field_31342
f_hcniobcr
field_31342
SLOTS
f_155548_
private NonNullList<ItemStack>
i
items
field_12024
f_ktuvlsrj
inventory
inventory
f_59301_
private int
j
cooldownTime
field_12023
f_azmfqpby
transferCooldown
transferCooldown
f_59302_
private long
k
tickedGameTime
field_12022
f_xxttfkhd
lastTickTime
lastTickTime
f_59303_

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public void
a(pj arg0)
load(CompoundTag arg0)
method_11014(class_2487 arg0)
m_dfzdncts(C_hhlwcnih arg0)
readNbt(NbtCompound arg0)
readNbt(NbtCompound arg0)
m_142466_(C_4917_ arg0)
protected void
b(pj arg0)
saveAdditional(CompoundTag arg0)
method_11007(class_2487 arg0)
m_qopnimsa(C_hhlwcnih arg0)
writeNbt(NbtCompound arg0)
writeNbt(NbtCompound arg0)
m_183515_(C_4917_ arg0)
public int
b()
getContainerSize()
method_5439()
m_dmbfvefd()
size()
size()
m_6643_()
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)
m_7407_(int p_59310_, int arg1)
public void
a(int arg0, cax 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)
m_6836_(int p_59316_, C_1391_ arg1)
protected Component
g()
getDefaultName()
method_17823()
m_egjsjpyi()
getContainerName()
getContainerName()
m_6820_()
public static void
a(cgx arg0, gt arg1, cvo arg2, cua 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)
m_155573_(C_1596_ p_155574_, C_4675_ p_155575_, C_2064_ p_155576_, C_2010_ p_155577_)
private static boolean
a(cgx arg0, gt arg1, cvo arg2, cua 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 arg4)
m_155578_(C_1596_ p_155579_, C_4675_ p_155580_, C_2064_ p_155581_, C_2010_ p_155582_, BooleanSupplier p_155583_)
private boolean
j()
inventoryFull()
method_11256()
m_vzdmljjn()
isFull()
isFull()
m_59404_()
private static boolean
a(cgx arg0, gt arg1, cvo arg2, bac arg3)
ejectItems(Level arg0, BlockPos arg1, BlockState arg2, Container arg3)
method_11246(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1263 arg3)
m_rnqdnnfm(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2, C_pjtstjoq arg3)
insert(World world, BlockPos pos, BlockState state, Inventory inventory)
insert(World world, BlockPos pos, BlockState state, Inventory inventory)
m_155562_(C_1596_ p_155563_, C_4675_ p_155564_, C_2064_ p_155565_, C_464_ p_155566_)
private static IntStream
a(bac arg0, gy 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)
m_59339_(C_464_ p_59340_, C_4687_ p_59341_)
private static boolean
b(bac arg0, gy 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)
m_59385_(C_464_ p_59386_, C_4687_ p_59387_)
private static boolean
c(bac arg0, gy arg1)
isEmptyContainer(Container arg0, Direction arg1)
method_11257(class_1263 arg0, class_2350 arg1)
m_joxndidc(C_pjtstjoq arg0, C_xpuuihxf arg1)
isInventoryEmpty(Inventory inv, Direction facing)
isInventoryEmpty(Inventory inv, Direction facing)
m_59397_(C_464_ p_59398_, C_4687_ p_59399_)
public static boolean
a(cgx arg0, ctz 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, Hopper hopper)
m_155552_(C_1596_ p_155553_, C_2009_ p_155554_)
private static boolean
a(ctz arg0, bac arg1, int arg2, gy 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(Hopper hopper, Inventory inventory, int slot, Direction side)
m_59354_(C_2009_ p_59355_, C_464_ p_59356_, int p_59357_, C_4687_ p_59358_)
public static boolean
a(bac arg0, bqv 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)
m_59331_(C_464_ p_59332_, C_976_ p_59333_)
public static ItemStack
a(bac arg0, bac arg1, cax arg2, gy 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)
m_59326_(C_464_ p_59327_, C_464_ p_59328_, C_1391_ p_59329_, C_4687_ p_59330_)
private static boolean
a(bac arg0, cax arg1, int arg2, gy 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)
m_59334_(C_464_ p_59335_, C_1391_ p_59336_, int p_59337_, C_4687_ p_59338_)
private static boolean
b(bac arg0, cax arg1, int arg2, gy arg3)
canTakeItemFromContainer(Container arg0, ItemStack arg1, int arg2, Direction arg3)
method_11252(class_1263 arg0, class_1799 arg1, int arg2, class_2350 arg3)
m_tmplyjcc(C_pjtstjoq arg0, C_sddaxwyk arg1, int arg2, C_xpuuihxf arg3)
canExtract(Inventory inv, ItemStack stack, int slot, Direction facing)
canExtract(Inventory inv, ItemStack stack, int slot, Direction facing)
m_59380_(C_464_ p_59381_, C_1391_ p_59382_, int p_59383_, C_4687_ p_59384_)
private static ItemStack
a(bac arg0, bac arg1, cax arg2, int arg3, gy 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)
m_59320_(C_464_ p_59321_, C_464_ p_59322_, C_1391_ p_59323_, int p_59324_, C_4687_ p_59325_)
private static Container
b(cgx arg0, gt arg1, cvo arg2)
getAttachedContainer(Level arg0, BlockPos arg1, BlockState arg2)
method_11255(class_1937 arg0, class_2338 arg1, class_2680 arg2)
m_sqzuavxi(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2)
getOutputInventory(World world, BlockPos pos, BlockState state)
getOutputInventory(World world, BlockPos pos, BlockState state)
m_155592_(C_1596_ p_155593_, C_4675_ p_155594_, C_2064_ p_155595_)
private static Container
c(cgx arg0, ctz arg1)
getSourceContainer(Level arg0, Hopper arg1)
method_11248(class_1937 arg0, class_2615 arg1)
m_opbelxmy(C_cdctfzbn arg0, C_exiahbos arg1)
getInputInventory(World world, Hopper hopper)
getInputInventory(World world, Hopper hopper)
m_155596_(C_1596_ p_155597_, C_2009_ p_155598_)
public static List<ItemEntity>
b(cgx arg0, ctz 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)
getInputItemEntities(World world, Hopper hopper)
m_155589_(C_1596_ p_155590_, C_2009_ p_155591_)
public static Container
a(cgx arg0, gt 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)
getInventoryAt(World world, BlockPos pos)
m_59390_(C_1596_ p_59391_, C_4675_ p_59392_)
private static Container
a(cgx arg0, double arg1, double arg2, double arg3)
getContainerAt(Level arg0, double arg1, double arg2, double arg3)
method_11251(class_1937 arg0, double arg1, double arg2, double arg3)
m_kyocncup(C_cdctfzbn arg0, double arg1, double arg2, double arg3)
getInventoryAt(World world, double x, double y, double z)
getInventoryAt(World world, double x, double y, double z)
m_59347_(C_1596_ p_59348_, double p_59349_, double p_59351_, double arg3)
private static boolean
a(cax arg0, cax 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)
m_59344_(C_1391_ p_59345_, C_1391_ p_59346_)
public double
E()
getLevelX()
method_11266()
m_pjssfdux()
getHopperX()
getHopperX()
m_6343_()
public double
F()
getLevelY()
method_11264()
m_gymptxwt()
getHopperY()
getHopperY()
m_6358_()
public double
G()
getLevelZ()
method_11265()
m_jckyrqkq()
getHopperZ()
getHopperZ()
m_6446_()
private void
c(int arg0)
setCooldown(int arg0)
method_11238(int arg0)
m_zawzrfob(int arg0)
setTransferCooldown(int transferCooldown)
setCooldown(int cooldown)
m_59395_(int arg0)
private boolean
t()
isOnCooldown()
method_11239()
m_casyzsyb()
needsCooldown()
needsCooldown()
m_59407_()
private boolean
w()
isOnCustomCooldown()
method_11242()
m_oshxfkng()
isDisabled()
isDisabled()
m_59409_()
protected NonNullList<ItemStack>
f()
getItems()
method_11282()
m_qkfbvwxz()
getInvStackList()
getInvStackList()
m_7086_()
protected void
a(hi<cax> arg0)
setItems(NonNullList<ItemStack> arg0)
method_11281(class_2371<class_1799> arg0)
m_whlgzmib(C_rnrfftze<C_sddaxwyk> arg0)
setInvStackList(DefaultedList<ItemStack> arg0)
setInvStackList(DefaultedList<ItemStack> arg0)
m_6520_(C_4702_<C_1391_> arg0)
public static void
a(cgx arg0, gt arg1, cvo arg2, bbn arg3, cua 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)
m_155567_(C_1596_ p_155568_, C_4675_ p_155569_, C_2064_ p_155570_, C_507_ p_155571_, C_2010_ p_155572_)
protected AbstractContainerMenu
a(int arg0, bub 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)
m_6555_(int p_59313_, C_1140_ arg1)