Class HopperBlockEntity
- All Implemented Interfaces:
Iterable<ItemStack>,Hopper,Inventory,LootableInventory,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,Nameable,DebugTrackable
- Mappings:
Namespace Name named net/minecraft/block/entity/HopperBlockEntityintermediary net/minecraft/class_2614official ekh
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.TrackerNested classes/interfaces inherited from interface net.minecraft.inventory.Inventory
Inventory.Iterator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[][]private static final Textprivate static final intprivate Directionprivate DefaultedList<ItemStack> static final intprivate longstatic final intprivate intFields inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
lootTable, lootTableSeedFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, worldFields inherited from interface net.minecraft.block.entity.Hopper
INPUT_AREA_SHAPEFields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGEFields inherited from interface net.minecraft.inventory.LootableInventory
LOOT_TABLE_KEY, LOOT_TABLE_SEED_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate static booleancanExtract(Inventory hopperInventory, Inventory fromInventory, ItemStack stack, int slot, Direction facing) private static booleanprivate static booleancanMergeItems(ItemStack first, ItemStack second) protected ScreenHandlercreateScreenHandler(int syncId, PlayerInventory playerInventory) private static booleanstatic booleanextract(Inventory inventory, ItemEntity itemEntity) static booleanprivate static int[]getAvailableSlots(Inventory inventory, Direction side) getBlockInventoryAt(World world, BlockPos pos, BlockState state) protected TextgetEntityInventoryAt(World world, double x, double y, double z) protected DefaultedList<ItemStack> doubledoubledoublegetInputInventory(World world, Hopper hopper, BlockPos pos, BlockState state) static List<ItemEntity> getInputItemEntities(World world, Hopper hopper) getInventoryAt(World world, BlockPos pos) getInventoryAt(World world, BlockPos pos, BlockState state, double x, double y, double z) getOutputInventory(World world, BlockPos pos, HopperBlockEntity blockEntity) private static int[]indexArray(int size) private static booleaninsert(World world, BlockPos pos, HopperBlockEntity blockEntity) private static booleaninsertAndExtract(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity, BooleanSupplier booleanSupplier) private booleanprivate booleanisFull()private static booleanisInventoryFull(Inventory inventory, Direction direction) private booleanstatic voidonEntityCollided(World world, BlockPos pos, BlockState state, Entity entity, HopperBlockEntity blockEntity) protected voidReads data fromnbt.removeStack(int slot, int amount) Removes a specific number of items fromslot.static voidserverTick(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity) voidsetCachedState(BlockState state) protected voidsetHeldStacks(DefaultedList<ItemStack> inventory) voidSets the stack stored atslottostack.private voidsetTransferCooldown(int transferCooldown) intsize()Returns the size of the inventory.private static ItemStacktransfer(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction side) static ItemStackprotected voidWrites data tonbt.Methods inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
addComponents, checkUnlocked, createMenu, getLootTable, getLootTableSeed, getStack, isEmpty, readComponents, removeFromCopiedStackData, removeStack, setLootTable, setLootTableSeedMethods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
canPlayerUse, checkUnlocked, clear, getCustomName, getDisplayName, getName, isLockedMethods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createComponentlessNbt, createComponentMap, createFromNbt, createNbt, createNbtWithIdentifyingData, getCachedState, getComponents, getNameForReport, getPos, getReporterContext, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onBlockReplaced, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessData, readComponents, readComponents, registerTracking, setComponents, setWorld, supports, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeComponentlessData, writeDataWithId, writeDataWithoutId, writeFullData, writeIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.block.entity.Hopper
getInputAreaShapeMethods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, getStack, getViewingUsers, isEmpty, isValid, iterator, markDirty, onClose, onOpen, removeStackMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.minecraft.inventory.LootableInventory
generateLoot, getPos, getWorld, readLootTable, setLootTable, writeLootTableMethods inherited from interface net.minecraft.util.Nameable
getStringifiedName, hasCustomName
-
Field Details
-
TRANSFER_COOLDOWN
public static final int TRANSFER_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named TRANSFER_COOLDOWNLnet/minecraft/block/entity/HopperBlockEntity;TRANSFER_COOLDOWN:Iintermediary field_31341Lnet/minecraft/class_2614;field_31341:Iofficial dLekh;d:I
-
INVENTORY_SIZE
public static final int INVENTORY_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named INVENTORY_SIZELnet/minecraft/block/entity/HopperBlockEntity;INVENTORY_SIZE:Iintermediary field_31342Lnet/minecraft/class_2614;field_31342:Iofficial eLekh;e:I
-
AVAILABLE_SLOTS_CACHE
private static final int[][] AVAILABLE_SLOTS_CACHE- Mappings:
Namespace Name Mixin selector named AVAILABLE_SLOTS_CACHELnet/minecraft/block/entity/HopperBlockEntity;AVAILABLE_SLOTS_CACHE:[[Iintermediary field_49100Lnet/minecraft/class_2614;field_49100:[[Iofficial fLekh;f:[[I
-
DEFAULT_TRANSFER_COOLDOWN
private static final int DEFAULT_TRANSFER_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_TRANSFER_COOLDOWNLnet/minecraft/block/entity/HopperBlockEntity;DEFAULT_TRANSFER_COOLDOWN:Iintermediary field_57778Lnet/minecraft/class_2614;field_57778:Iofficial gLekh;g:I
-
CONTAINER_NAME_TEXT
- Mappings:
Namespace Name Mixin selector named CONTAINER_NAME_TEXTLnet/minecraft/block/entity/HopperBlockEntity;CONTAINER_NAME_TEXT:Lnet/minecraft/text/Text;intermediary field_63045Lnet/minecraft/class_2614;field_63045:Lnet/minecraft/class_2561;official hLekh;h:Lym;
-
inventory
- Mappings:
Namespace Name Mixin selector named inventoryLnet/minecraft/block/entity/HopperBlockEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;intermediary field_12024Lnet/minecraft/class_2614;field_12024:Lnet/minecraft/class_2371;official iLekh;i:Ljs;
-
transferCooldown
private int transferCooldown- Mappings:
Namespace Name Mixin selector named transferCooldownLnet/minecraft/block/entity/HopperBlockEntity;transferCooldown:Iintermediary field_12023Lnet/minecraft/class_2614;field_12023:Iofficial jLekh;j:I
-
lastTickTime
private long lastTickTime- Mappings:
Namespace Name Mixin selector named lastTickTimeLnet/minecraft/block/entity/HopperBlockEntity;lastTickTime:Jintermediary field_12022Lnet/minecraft/class_2614;field_12022:Jofficial kLekh;k:J
-
facing
- Mappings:
Namespace Name Mixin selector named facingLnet/minecraft/block/entity/HopperBlockEntity;facing:Lnet/minecraft/util/math/Direction;intermediary field_49101Lnet/minecraft/class_2614;field_49101:Lnet/minecraft/class_2350;official qLekh;q:Ljf;
-
-
Constructor Details
-
HopperBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/HopperBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_2614;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Lekh;<init>(Liz;Lemj;)V
-
-
Method Details
-
readData
Reads data fromnbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readDatain classLockableContainerBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readDataLnet/minecraft/block/entity/BlockEntity;readData(Lnet/minecraft/storage/ReadView;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_11368;)Vofficial aLejd;a(Lfll;)V
-
writeData
Writes data tonbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
- Overrides:
writeDatain classLockableContainerBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeDataLnet/minecraft/block/entity/BlockEntity;writeData(Lnet/minecraft/storage/WriteView;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_11372;)Vofficial aLejd;a(Lfln;)V
-
size
public int size()Returns the size of the inventory.The inventory should support the slot ID from
0tosize() - 1. This should remain constant throughout the inventory's lifetime. -
removeStack
Removes a specific number of items fromslot.- Specified by:
removeStackin interfaceInventory- Overrides:
removeStackin classLootableContainerBlockEntity- Returns:
- the removed items as a stack
- Mappings:
Namespace Name Mixin selector named removeStackLnet/minecraft/inventory/Inventory;removeStack(II)Lnet/minecraft/item/ItemStack;intermediary method_5434Lnet/minecraft/class_1263;method_5434(II)Lnet/minecraft/class_1799;official aLccr;a(II)Ldkg;
-
setStack
Sets the stack stored atslottostack.- Specified by:
setStackin interfaceInventory- Overrides:
setStackin classLootableContainerBlockEntity- Mappings:
Namespace Name Mixin selector named setStackLnet/minecraft/inventory/Inventory;setStack(ILnet/minecraft/item/ItemStack;)Vintermediary method_5447Lnet/minecraft/class_1263;method_5447(ILnet/minecraft/class_1799;)Vofficial aLccr;a(ILdkg;)V
-
setCachedState
- Overrides:
setCachedStatein classBlockEntity- Mappings:
Namespace Name Mixin selector named setCachedStateLnet/minecraft/block/entity/BlockEntity;setCachedState(Lnet/minecraft/block/BlockState;)Vintermediary method_31664Lnet/minecraft/class_2586;method_31664(Lnet/minecraft/class_2680;)Vofficial cLejd;c(Lemj;)V
-
getContainerName
- Specified by:
getContainerNamein classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector named getContainerNameLnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;intermediary method_17823Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;official kLeiw;k()Lym;
-
serverTick
public static void serverTick(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named serverTickLnet/minecraft/block/entity/HopperBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/HopperBlockEntity;)Vintermediary method_31692Lnet/minecraft/class_2614;method_31692(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2614;)Vofficial aLekh;a(Ldup;Liz;Lemj;Lekh;)V
-
insertAndExtract
private static boolean insertAndExtract(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity, BooleanSupplier booleanSupplier) - Mappings:
Namespace Name Mixin selector named insertAndExtractLnet/minecraft/block/entity/HopperBlockEntity;insertAndExtract(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/HopperBlockEntity;Ljava/util/function/BooleanSupplier;)Zintermediary method_11243Lnet/minecraft/class_2614;method_11243(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2614;Ljava/util/function/BooleanSupplier;)Zofficial aLekh;a(Ldup;Liz;Lemj;Lekh;Ljava/util/function/BooleanSupplier;)Z
-
isFull
private boolean isFull()- Mappings:
Namespace Name Mixin selector named isFullLnet/minecraft/block/entity/HopperBlockEntity;isFull()Zintermediary method_11256Lnet/minecraft/class_2614;method_11256()Zofficial lLekh;l()Z
-
insert
- Mappings:
Namespace Name Mixin selector named insertLnet/minecraft/block/entity/HopperBlockEntity;insert(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/HopperBlockEntity;)Zintermediary method_11246Lnet/minecraft/class_2614;method_11246(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2614;)Zofficial aLekh;a(Ldup;Liz;Lekh;)Z
-
getAvailableSlots
- Mappings:
Namespace Name Mixin selector named getAvailableSlotsLnet/minecraft/block/entity/HopperBlockEntity;getAvailableSlots(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/Direction;)[Iintermediary method_17767Lnet/minecraft/class_2614;method_17767(Lnet/minecraft/class_1263;Lnet/minecraft/class_2350;)[Iofficial aLekh;a(Lccr;Ljf;)[I
-
indexArray
private static int[] indexArray(int size) - Mappings:
Namespace Name Mixin selector named indexArrayLnet/minecraft/block/entity/HopperBlockEntity;indexArray(I)[Iintermediary method_57011Lnet/minecraft/class_2614;method_57011(I)[Iofficial cLekh;c(I)[I
-
isInventoryFull
- Mappings:
Namespace Name Mixin selector named isInventoryFullLnet/minecraft/block/entity/HopperBlockEntity;isInventoryFull(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/Direction;)Zintermediary method_11258Lnet/minecraft/class_2614;method_11258(Lnet/minecraft/class_1263;Lnet/minecraft/class_2350;)Zofficial bLekh;b(Lccr;Ljf;)Z
-
extract
- Mappings:
Namespace Name Mixin selector named extractLnet/minecraft/block/entity/HopperBlockEntity;extract(Lnet/minecraft/world/World;Lnet/minecraft/block/entity/Hopper;)Zintermediary method_11241Lnet/minecraft/class_2614;method_11241(Lnet/minecraft/class_1937;Lnet/minecraft/class_2615;)Zofficial aLekh;a(Ldup;Lekg;)Z
-
extract
- Mappings:
Namespace Name Mixin selector named extractLnet/minecraft/block/entity/HopperBlockEntity;extract(Lnet/minecraft/block/entity/Hopper;Lnet/minecraft/inventory/Inventory;ILnet/minecraft/util/math/Direction;)Zintermediary method_11261Lnet/minecraft/class_2614;method_11261(Lnet/minecraft/class_2615;Lnet/minecraft/class_1263;ILnet/minecraft/class_2350;)Zofficial aLekh;a(Lekg;Lccr;ILjf;)Z
-
extract
- Mappings:
Namespace Name Mixin selector named extractLnet/minecraft/block/entity/HopperBlockEntity;extract(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/entity/ItemEntity;)Zintermediary method_11247Lnet/minecraft/class_2614;method_11247(Lnet/minecraft/class_1263;Lnet/minecraft/class_1542;)Zofficial aLekh;a(Lccr;Lcyi;)Z
-
transfer
public static ItemStack transfer(@Nullable @Nullable Inventory from, Inventory to, ItemStack stack, @Nullable @Nullable Direction side) - Mappings:
Namespace Name Mixin selector named transferLnet/minecraft/block/entity/HopperBlockEntity;transfer(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/item/ItemStack;intermediary method_11260Lnet/minecraft/class_2614;method_11260(Lnet/minecraft/class_1263;Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Lnet/minecraft/class_1799;official aLekh;a(Lccr;Lccr;Ldkg;Ljf;)Ldkg;
-
canInsert
private static boolean canInsert(Inventory inventory, ItemStack stack, int slot, @Nullable @Nullable Direction side) - Mappings:
Namespace Name Mixin selector named canInsertLnet/minecraft/block/entity/HopperBlockEntity;canInsert(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Zintermediary method_11244Lnet/minecraft/class_2614;method_11244(Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;ILnet/minecraft/class_2350;)Zofficial aLekh;a(Lccr;Ldkg;ILjf;)Z
-
canExtract
private static boolean canExtract(Inventory hopperInventory, Inventory fromInventory, ItemStack stack, int slot, Direction facing) - Mappings:
Namespace Name Mixin selector named canExtractLnet/minecraft/block/entity/HopperBlockEntity;canExtract(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Zintermediary method_11252Lnet/minecraft/class_2614;method_11252(Lnet/minecraft/class_1263;Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;ILnet/minecraft/class_2350;)Zofficial aLekh;a(Lccr;Lccr;Ldkg;ILjf;)Z
-
transfer
private static ItemStack transfer(@Nullable @Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable @Nullable Direction side) - Mappings:
Namespace Name Mixin selector named transferLnet/minecraft/block/entity/HopperBlockEntity;transfer(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Lnet/minecraft/item/ItemStack;intermediary method_11253Lnet/minecraft/class_2614;method_11253(Lnet/minecraft/class_1263;Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;ILnet/minecraft/class_2350;)Lnet/minecraft/class_1799;official bLekh;b(Lccr;Lccr;Ldkg;ILjf;)Ldkg;
-
getOutputInventory
@Nullable private static @Nullable Inventory getOutputInventory(World world, BlockPos pos, HopperBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named getOutputInventoryLnet/minecraft/block/entity/HopperBlockEntity;getOutputInventory(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/HopperBlockEntity;)Lnet/minecraft/inventory/Inventory;intermediary method_11255Lnet/minecraft/class_2614;method_11255(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2614;)Lnet/minecraft/class_1263;official bLekh;b(Ldup;Liz;Lekh;)Lccr;
-
getInputInventory
@Nullable private static @Nullable Inventory getInputInventory(World world, Hopper hopper, BlockPos pos, BlockState state) - Mappings:
Namespace Name Mixin selector named getInputInventoryLnet/minecraft/block/entity/HopperBlockEntity;getInputInventory(Lnet/minecraft/world/World;Lnet/minecraft/block/entity/Hopper;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/inventory/Inventory;intermediary method_11248Lnet/minecraft/class_2614;method_11248(Lnet/minecraft/class_1937;Lnet/minecraft/class_2615;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1263;official aLekh;a(Ldup;Lekg;Liz;Lemj;)Lccr;
-
getInputItemEntities
- Mappings:
Namespace Name Mixin selector named getInputItemEntitiesLnet/minecraft/block/entity/HopperBlockEntity;getInputItemEntities(Lnet/minecraft/world/World;Lnet/minecraft/block/entity/Hopper;)Ljava/util/List;intermediary method_11237Lnet/minecraft/class_2614;method_11237(Lnet/minecraft/class_1937;Lnet/minecraft/class_2615;)Ljava/util/List;official bLekh;b(Ldup;Lekg;)Ljava/util/List;
-
getInventoryAt
- Mappings:
Namespace Name Mixin selector named getInventoryAtLnet/minecraft/block/entity/HopperBlockEntity;getInventoryAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/inventory/Inventory;intermediary method_11250Lnet/minecraft/class_2614;method_11250(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1263;official aLekh;a(Ldup;Liz;)Lccr;
-
getInventoryAt
@Nullable private static @Nullable Inventory getInventoryAt(World world, BlockPos pos, BlockState state, double x, double y, double z) - Mappings:
Namespace Name Mixin selector named getInventoryAtLnet/minecraft/block/entity/HopperBlockEntity;getInventoryAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;DDD)Lnet/minecraft/inventory/Inventory;intermediary method_11251Lnet/minecraft/class_2614;method_11251(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;DDD)Lnet/minecraft/class_1263;official aLekh;a(Ldup;Liz;Lemj;DDD)Lccr;
-
getBlockInventoryAt
@Nullable private static @Nullable Inventory getBlockInventoryAt(World world, BlockPos pos, BlockState state) - Mappings:
Namespace Name Mixin selector named getBlockInventoryAtLnet/minecraft/block/entity/HopperBlockEntity;getBlockInventoryAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/inventory/Inventory;intermediary method_57010Lnet/minecraft/class_2614;method_57010(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1263;official bLekh;b(Ldup;Liz;Lemj;)Lccr;
-
getEntityInventoryAt
@Nullable private static @Nullable Inventory getEntityInventoryAt(World world, double x, double y, double z) - Mappings:
Namespace Name Mixin selector named getEntityInventoryAtLnet/minecraft/block/entity/HopperBlockEntity;getEntityInventoryAt(Lnet/minecraft/world/World;DDD)Lnet/minecraft/inventory/Inventory;intermediary method_57009Lnet/minecraft/class_2614;method_57009(Lnet/minecraft/class_1937;DDD)Lnet/minecraft/class_1263;official aLekh;a(Ldup;DDD)Lccr;
-
canMergeItems
- Mappings:
Namespace Name Mixin selector named canMergeItemsLnet/minecraft/block/entity/HopperBlockEntity;canMergeItems(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Zintermediary method_11254Lnet/minecraft/class_2614;method_11254(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Zofficial aLekh;a(Ldkg;Ldkg;)Z
-
getHopperX
public double getHopperX()- Specified by:
getHopperXin interfaceHopper- Mappings:
Namespace Name Mixin selector named getHopperXLnet/minecraft/block/entity/Hopper;getHopperX()Dintermediary method_11266Lnet/minecraft/class_2615;method_11266()Dofficial BLekg;B()D
-
getHopperY
public double getHopperY()- Specified by:
getHopperYin interfaceHopper- Mappings:
Namespace Name Mixin selector named getHopperYLnet/minecraft/block/entity/Hopper;getHopperY()Dintermediary method_11264Lnet/minecraft/class_2615;method_11264()Dofficial CLekg;C()D
-
getHopperZ
public double getHopperZ()- Specified by:
getHopperZin interfaceHopper- Mappings:
Namespace Name Mixin selector named getHopperZLnet/minecraft/block/entity/Hopper;getHopperZ()Dintermediary method_11265Lnet/minecraft/class_2615;method_11265()Dofficial DLekg;D()D
-
canBlockFromAbove
public boolean canBlockFromAbove()- Specified by:
canBlockFromAbovein interfaceHopper- Mappings:
Namespace Name Mixin selector named canBlockFromAboveLnet/minecraft/block/entity/Hopper;canBlockFromAbove()Zintermediary method_57081Lnet/minecraft/class_2615;method_57081()Zofficial ELekg;E()Z
-
setTransferCooldown
private void setTransferCooldown(int transferCooldown) - Mappings:
Namespace Name Mixin selector named setTransferCooldownLnet/minecraft/block/entity/HopperBlockEntity;setTransferCooldown(I)Vintermediary method_11238Lnet/minecraft/class_2614;method_11238(I)Vofficial dLekh;d(I)V
-
needsCooldown
private boolean needsCooldown()- Mappings:
Namespace Name Mixin selector named needsCooldownLnet/minecraft/block/entity/HopperBlockEntity;needsCooldown()Zintermediary method_11239Lnet/minecraft/class_2614;method_11239()Zofficial wLekh;w()Z
-
isDisabled
private boolean isDisabled()- Mappings:
Namespace Name Mixin selector named isDisabledLnet/minecraft/block/entity/HopperBlockEntity;isDisabled()Zintermediary method_11242Lnet/minecraft/class_2614;method_11242()Zofficial xLekh;x()Z
-
getHeldStacks
- Specified by:
getHeldStacksin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector named getHeldStacksLnet/minecraft/block/entity/LockableContainerBlockEntity;getHeldStacks()Lnet/minecraft/util/collection/DefaultedList;intermediary method_11282Lnet/minecraft/class_2624;method_11282()Lnet/minecraft/class_2371;official gLeiw;g()Ljs;
-
setHeldStacks
- Specified by:
setHeldStacksin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector named setHeldStacksLnet/minecraft/block/entity/LockableContainerBlockEntity;setHeldStacks(Lnet/minecraft/util/collection/DefaultedList;)Vintermediary method_11281Lnet/minecraft/class_2624;method_11281(Lnet/minecraft/class_2371;)Vofficial aLeiw;a(Ljs;)V
-
onEntityCollided
public static void onEntityCollided(World world, BlockPos pos, BlockState state, Entity entity, HopperBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named onEntityCollidedLnet/minecraft/block/entity/HopperBlockEntity;onEntityCollided(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/Entity;Lnet/minecraft/block/entity/HopperBlockEntity;)Vintermediary method_11236Lnet/minecraft/class_2614;method_11236(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1297;Lnet/minecraft/class_2614;)Vofficial aLekh;a(Ldup;Liz;Lemj;Lcge;Lekh;)V
-
createScreenHandler
- Specified by:
createScreenHandlerin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector named createScreenHandlerLnet/minecraft/block/entity/LockableContainerBlockEntity;createScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;intermediary method_5465Lnet/minecraft/class_2624;method_5465(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;official aLeiw;a(ILdcb;)Ldfx;
-