Class HopperBlockEntity
- All Implemented Interfaces:
Hopper
,Inventory
,LootableInventory
,NamedScreenHandlerFactory
,ScreenHandlerFactory
,Clearable
,Nameable
- Mappings:
Namespace Name named net/minecraft/block/entity/HopperBlockEntity
intermediary net/minecraft/class_2614
official dqi
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntity
BlockEntity.ComponentsAccess
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int[][]
private Direction
private DefaultedList
<ItemStack> static final int
private long
static final int
private int
Fields inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
lootTable, lootTableSeed
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
Fields inherited from interface net.minecraft.block.entity.Hopper
INPUT_AREA_SHAPE
Fields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGE
Fields inherited from interface net.minecraft.inventory.LootableInventory
LOOT_TABLE_KEY, LOOT_TABLE_SEED_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
private static boolean
canExtract
(Inventory hopperInventory, Inventory fromInventory, ItemStack stack, int slot, Direction facing) private static boolean
private static boolean
canMergeItems
(ItemStack first, ItemStack second) protected ScreenHandler
createScreenHandler
(int syncId, PlayerInventory playerInventory) private static boolean
static boolean
extract
(Inventory inventory, ItemEntity itemEntity) static boolean
private static int[]
getAvailableSlots
(Inventory inventory, Direction side) getBlockInventoryAt
(World world, BlockPos pos, BlockState state) protected Text
getEntityInventoryAt
(World world, double x, double y, double z) protected DefaultedList
<ItemStack> double
double
double
getInputInventory
(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 boolean
insert
(World world, BlockPos pos, HopperBlockEntity blockEntity) private static boolean
insertAndExtract
(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity, BooleanSupplier booleanSupplier) private boolean
private boolean
isFull()
private static boolean
isInventoryFull
(Inventory inventory, Direction direction) private boolean
static void
onEntityCollided
(World world, BlockPos pos, BlockState state, Entity entity, HopperBlockEntity blockEntity) protected void
readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.removeStack
(int slot, int amount) Removes a specific number of items fromslot
.static void
serverTick
(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity) void
setCachedState
(BlockState state) protected void
setHeldStacks
(DefaultedList<ItemStack> inventory) void
Sets the stack stored atslot
tostack
.private void
setTransferCooldown
(int transferCooldown) int
size()
Returns the size of the inventory.private static ItemStack
transfer
(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction side) static ItemStack
protected void
writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.Methods inherited from class net.minecraft.block.entity.LootableContainerBlockEntity
addComponents, checkUnlocked, createMenu, getLootTable, getLootTableSeed, getStack, isEmpty, readComponents, removeFromCopiedStackNbt, removeStack, setLootTable, setLootTableSeed
Methods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
canPlayerUse, checkUnlocked, clear, getCustomName, getDisplayName, getName
Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, setComponents, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeIdToNbt
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.block.entity.Hopper
getInputAreaShape
Methods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, onClose, onOpen, removeStack
Methods inherited from interface net.minecraft.inventory.LootableInventory
generateLoot, getPos, getWorld, readLootTable, setLootTable, writeLootTable
Methods inherited from interface net.minecraft.util.Nameable
hasCustomName
-
Field Details
-
TRANSFER_COOLDOWN
public static final int TRANSFER_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector named TRANSFER_COOLDOWN
Lnet/minecraft/block/entity/HopperBlockEntity;TRANSFER_COOLDOWN:I
intermediary field_31341
Lnet/minecraft/class_2614;field_31341:I
official d
Ldqi;d:I
-
INVENTORY_SIZE
public static final int INVENTORY_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named INVENTORY_SIZE
Lnet/minecraft/block/entity/HopperBlockEntity;INVENTORY_SIZE:I
intermediary field_31342
Lnet/minecraft/class_2614;field_31342:I
official e
Ldqi;e:I
-
AVAILABLE_SLOTS_CACHE
private static final int[][] AVAILABLE_SLOTS_CACHE- Mappings:
Namespace Name Mixin selector named AVAILABLE_SLOTS_CACHE
Lnet/minecraft/block/entity/HopperBlockEntity;AVAILABLE_SLOTS_CACHE:[[I
intermediary field_49100
Lnet/minecraft/class_2614;field_49100:[[I
official f
Ldqi;f:[[I
-
inventory
- Mappings:
Namespace Name Mixin selector named inventory
Lnet/minecraft/block/entity/HopperBlockEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;
intermediary field_12024
Lnet/minecraft/class_2614;field_12024:Lnet/minecraft/class_2371;
official g
Ldqi;g:Ljr;
-
transferCooldown
private int transferCooldown- Mappings:
Namespace Name Mixin selector named transferCooldown
Lnet/minecraft/block/entity/HopperBlockEntity;transferCooldown:I
intermediary field_12023
Lnet/minecraft/class_2614;field_12023:I
official h
Ldqi;h:I
-
lastTickTime
private long lastTickTime- Mappings:
Namespace Name Mixin selector named lastTickTime
Lnet/minecraft/block/entity/HopperBlockEntity;lastTickTime:J
intermediary field_12022
Lnet/minecraft/class_2614;field_12022:J
official i
Ldqi;i:J
-
facing
- Mappings:
Namespace Name Mixin selector named facing
Lnet/minecraft/block/entity/HopperBlockEntity;facing:Lnet/minecraft/util/math/Direction;
intermediary field_49101
Lnet/minecraft/class_2614;field_49101:Lnet/minecraft/class_2350;
official j
Ldqi;j:Lje;
-
-
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;)V
intermediary <init>
Lnet/minecraft/class_2614;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official <init>
Ldqi;<init>(Liz;Ldse;)V
-
-
Method Details
-
readNbt
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.
nbt
might 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:
readNbt
in classLockableContainerBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readNbt
Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
official a
Ldpj;a(Lus;Ljk$a;)V
-
writeNbt
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:
writeNbt
in classLockableContainerBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
official b
Ldpj;b(Lus;Ljk$a;)V
-
size
public int size()Returns the size of the inventory.The inventory should support the slot ID from
0
tosize() - 1
. This should remain constant throughout the inventory's lifetime. -
removeStack
Removes a specific number of items fromslot
.- Specified by:
removeStack
in interfaceInventory
- Overrides:
removeStack
in classLootableContainerBlockEntity
- Returns:
- the removed items as a stack
- Mappings:
Namespace Name Mixin selector named removeStack
Lnet/minecraft/inventory/Inventory;removeStack(II)Lnet/minecraft/item/ItemStack;
intermediary method_5434
Lnet/minecraft/class_1263;method_5434(II)Lnet/minecraft/class_1799;
official a
Lbqp;a(II)Lcur;
-
setStack
Sets the stack stored atslot
tostack
.- Specified by:
setStack
in interfaceInventory
- Overrides:
setStack
in classLootableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector named setStack
Lnet/minecraft/inventory/Inventory;setStack(ILnet/minecraft/item/ItemStack;)V
intermediary method_5447
Lnet/minecraft/class_1263;method_5447(ILnet/minecraft/class_1799;)V
official a
Lbqp;a(ILcur;)V
-
setCachedState
- Overrides:
setCachedState
in classBlockEntity
- Mappings:
Namespace Name Mixin selector named setCachedState
Lnet/minecraft/block/entity/BlockEntity;setCachedState(Lnet/minecraft/block/BlockState;)V
intermediary method_31664
Lnet/minecraft/class_2586;method_31664(Lnet/minecraft/class_2680;)V
official b
Ldpj;b(Ldse;)V
-
getContainerName
- Specified by:
getContainerName
in classLockableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector named getContainerName
Lnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;
intermediary method_17823
Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;
official k
Ldpd;k()Lxp;
-
serverTick
public static void serverTick(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named serverTick
Lnet/minecraft/block/entity/HopperBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/HopperBlockEntity;)V
intermediary method_31692
Lnet/minecraft/class_2614;method_31692(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2614;)V
official a
Ldqi;a(Ldca;Liz;Ldse;Ldqi;)V
-
insertAndExtract
private static boolean insertAndExtract(World world, BlockPos pos, BlockState state, HopperBlockEntity blockEntity, BooleanSupplier booleanSupplier) - Mappings:
Namespace Name Mixin selector named insertAndExtract
Lnet/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;)Z
intermediary method_11243
Lnet/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;)Z
official a
Ldqi;a(Ldca;Liz;Ldse;Ldqi;Ljava/util/function/BooleanSupplier;)Z
-
isFull
private boolean isFull()- Mappings:
Namespace Name Mixin selector named isFull
Lnet/minecraft/block/entity/HopperBlockEntity;isFull()Z
intermediary method_11256
Lnet/minecraft/class_2614;method_11256()Z
official l
Ldqi;l()Z
-
insert
- Mappings:
Namespace Name Mixin selector named insert
Lnet/minecraft/block/entity/HopperBlockEntity;insert(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/HopperBlockEntity;)Z
intermediary method_11246
Lnet/minecraft/class_2614;method_11246(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2614;)Z
official a
Ldqi;a(Ldca;Liz;Ldqi;)Z
-
getAvailableSlots
- Mappings:
Namespace Name Mixin selector named getAvailableSlots
Lnet/minecraft/block/entity/HopperBlockEntity;getAvailableSlots(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/Direction;)[I
intermediary method_17767
Lnet/minecraft/class_2614;method_17767(Lnet/minecraft/class_1263;Lnet/minecraft/class_2350;)[I
official a
Ldqi;a(Lbqp;Lje;)[I
-
indexArray
private static int[] indexArray(int size) - Mappings:
Namespace Name Mixin selector named indexArray
Lnet/minecraft/block/entity/HopperBlockEntity;indexArray(I)[I
intermediary method_57011
Lnet/minecraft/class_2614;method_57011(I)[I
official c
Ldqi;c(I)[I
-
isInventoryFull
- Mappings:
Namespace Name Mixin selector named isInventoryFull
Lnet/minecraft/block/entity/HopperBlockEntity;isInventoryFull(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/Direction;)Z
intermediary method_11258
Lnet/minecraft/class_2614;method_11258(Lnet/minecraft/class_1263;Lnet/minecraft/class_2350;)Z
official b
Ldqi;b(Lbqp;Lje;)Z
-
extract
- Mappings:
Namespace Name Mixin selector named extract
Lnet/minecraft/block/entity/HopperBlockEntity;extract(Lnet/minecraft/world/World;Lnet/minecraft/block/entity/Hopper;)Z
intermediary method_11241
Lnet/minecraft/class_2614;method_11241(Lnet/minecraft/class_1937;Lnet/minecraft/class_2615;)Z
official a
Ldqi;a(Ldca;Ldqh;)Z
-
extract
- Mappings:
Namespace Name Mixin selector named extract
Lnet/minecraft/block/entity/HopperBlockEntity;extract(Lnet/minecraft/block/entity/Hopper;Lnet/minecraft/inventory/Inventory;ILnet/minecraft/util/math/Direction;)Z
intermediary method_11261
Lnet/minecraft/class_2614;method_11261(Lnet/minecraft/class_2615;Lnet/minecraft/class_1263;ILnet/minecraft/class_2350;)Z
official a
Ldqi;a(Ldqh;Lbqp;ILje;)Z
-
extract
- Mappings:
Namespace Name Mixin selector named extract
Lnet/minecraft/block/entity/HopperBlockEntity;extract(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/entity/ItemEntity;)Z
intermediary method_11247
Lnet/minecraft/class_2614;method_11247(Lnet/minecraft/class_1263;Lnet/minecraft/class_1542;)Z
official a
Ldqi;a(Lbqp;Lcjj;)Z
-
transfer
public static ItemStack transfer(@Nullable @Nullable Inventory from, Inventory to, ItemStack stack, @Nullable @Nullable Direction side) - Mappings:
Namespace Name Mixin selector named transfer
Lnet/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_11260
Lnet/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 a
Ldqi;a(Lbqp;Lbqp;Lcur;Lje;)Lcur;
-
canInsert
private static boolean canInsert(Inventory inventory, ItemStack stack, int slot, @Nullable @Nullable Direction side) - Mappings:
Namespace Name Mixin selector named canInsert
Lnet/minecraft/block/entity/HopperBlockEntity;canInsert(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Z
intermediary method_11244
Lnet/minecraft/class_2614;method_11244(Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;ILnet/minecraft/class_2350;)Z
official a
Ldqi;a(Lbqp;Lcur;ILje;)Z
-
canExtract
private static boolean canExtract(Inventory hopperInventory, Inventory fromInventory, ItemStack stack, int slot, Direction facing) - Mappings:
Namespace Name Mixin selector named canExtract
Lnet/minecraft/block/entity/HopperBlockEntity;canExtract(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Z
intermediary method_11252
Lnet/minecraft/class_2614;method_11252(Lnet/minecraft/class_1263;Lnet/minecraft/class_1263;Lnet/minecraft/class_1799;ILnet/minecraft/class_2350;)Z
official a
Ldqi;a(Lbqp;Lbqp;Lcur;ILje;)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 transfer
Lnet/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_11253
Lnet/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 b
Ldqi;b(Lbqp;Lbqp;Lcur;ILje;)Lcur;
-
getOutputInventory
@Nullable private static @Nullable Inventory getOutputInventory(World world, BlockPos pos, HopperBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named getOutputInventory
Lnet/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_11255
Lnet/minecraft/class_2614;method_11255(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2614;)Lnet/minecraft/class_1263;
official b
Ldqi;b(Ldca;Liz;Ldqi;)Lbqp;
-
getInputInventory
@Nullable private static @Nullable Inventory getInputInventory(World world, Hopper hopper, BlockPos pos, BlockState state) - Mappings:
Namespace Name Mixin selector named getInputInventory
Lnet/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_11248
Lnet/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 a
Ldqi;a(Ldca;Ldqh;Liz;Ldse;)Lbqp;
-
getInputItemEntities
- Mappings:
Namespace Name Mixin selector named getInputItemEntities
Lnet/minecraft/block/entity/HopperBlockEntity;getInputItemEntities(Lnet/minecraft/world/World;Lnet/minecraft/block/entity/Hopper;)Ljava/util/List;
intermediary method_11237
Lnet/minecraft/class_2614;method_11237(Lnet/minecraft/class_1937;Lnet/minecraft/class_2615;)Ljava/util/List;
official b
Ldqi;b(Ldca;Ldqh;)Ljava/util/List;
-
getInventoryAt
- Mappings:
Namespace Name Mixin selector named getInventoryAt
Lnet/minecraft/block/entity/HopperBlockEntity;getInventoryAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/inventory/Inventory;
intermediary method_11250
Lnet/minecraft/class_2614;method_11250(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1263;
official a
Ldqi;a(Ldca;Liz;)Lbqp;
-
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 getInventoryAt
Lnet/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_11251
Lnet/minecraft/class_2614;method_11251(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;DDD)Lnet/minecraft/class_1263;
official a
Ldqi;a(Ldca;Liz;Ldse;DDD)Lbqp;
-
getBlockInventoryAt
@Nullable private static @Nullable Inventory getBlockInventoryAt(World world, BlockPos pos, BlockState state) - Mappings:
Namespace Name Mixin selector named getBlockInventoryAt
Lnet/minecraft/block/entity/HopperBlockEntity;getBlockInventoryAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/inventory/Inventory;
intermediary method_57010
Lnet/minecraft/class_2614;method_57010(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1263;
official b
Ldqi;b(Ldca;Liz;Ldse;)Lbqp;
-
getEntityInventoryAt
@Nullable private static @Nullable Inventory getEntityInventoryAt(World world, double x, double y, double z) - Mappings:
Namespace Name Mixin selector named getEntityInventoryAt
Lnet/minecraft/block/entity/HopperBlockEntity;getEntityInventoryAt(Lnet/minecraft/world/World;DDD)Lnet/minecraft/inventory/Inventory;
intermediary method_57009
Lnet/minecraft/class_2614;method_57009(Lnet/minecraft/class_1937;DDD)Lnet/minecraft/class_1263;
official a
Ldqi;a(Ldca;DDD)Lbqp;
-
canMergeItems
- Mappings:
Namespace Name Mixin selector named canMergeItems
Lnet/minecraft/block/entity/HopperBlockEntity;canMergeItems(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
intermediary method_11254
Lnet/minecraft/class_2614;method_11254(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
official a
Ldqi;a(Lcur;Lcur;)Z
-
getHopperX
public double getHopperX()- Specified by:
getHopperX
in interfaceHopper
- Mappings:
Namespace Name Mixin selector named getHopperX
Lnet/minecraft/block/entity/Hopper;getHopperX()D
intermediary method_11266
Lnet/minecraft/class_2615;method_11266()D
official H
Ldqh;H()D
-
getHopperY
public double getHopperY()- Specified by:
getHopperY
in interfaceHopper
- Mappings:
Namespace Name Mixin selector named getHopperY
Lnet/minecraft/block/entity/Hopper;getHopperY()D
intermediary method_11264
Lnet/minecraft/class_2615;method_11264()D
official I
Ldqh;I()D
-
getHopperZ
public double getHopperZ()- Specified by:
getHopperZ
in interfaceHopper
- Mappings:
Namespace Name Mixin selector named getHopperZ
Lnet/minecraft/block/entity/Hopper;getHopperZ()D
intermediary method_11265
Lnet/minecraft/class_2615;method_11265()D
official J
Ldqh;J()D
-
canBlockFromAbove
public boolean canBlockFromAbove()- Specified by:
canBlockFromAbove
in interfaceHopper
- Mappings:
Namespace Name Mixin selector named canBlockFromAbove
Lnet/minecraft/block/entity/Hopper;canBlockFromAbove()Z
intermediary method_57081
Lnet/minecraft/class_2615;method_57081()Z
official K
Ldqh;K()Z
-
setTransferCooldown
private void setTransferCooldown(int transferCooldown) - Mappings:
Namespace Name Mixin selector named setTransferCooldown
Lnet/minecraft/block/entity/HopperBlockEntity;setTransferCooldown(I)V
intermediary method_11238
Lnet/minecraft/class_2614;method_11238(I)V
official d
Ldqi;d(I)V
-
needsCooldown
private boolean needsCooldown()- Mappings:
Namespace Name Mixin selector named needsCooldown
Lnet/minecraft/block/entity/HopperBlockEntity;needsCooldown()Z
intermediary method_11239
Lnet/minecraft/class_2614;method_11239()Z
official u
Ldqi;u()Z
-
isDisabled
private boolean isDisabled()- Mappings:
Namespace Name Mixin selector named isDisabled
Lnet/minecraft/block/entity/HopperBlockEntity;isDisabled()Z
intermediary method_11242
Lnet/minecraft/class_2614;method_11242()Z
official v
Ldqi;v()Z
-
getHeldStacks
- Specified by:
getHeldStacks
in classLockableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector named getHeldStacks
Lnet/minecraft/block/entity/LockableContainerBlockEntity;getHeldStacks()Lnet/minecraft/util/collection/DefaultedList;
intermediary method_11282
Lnet/minecraft/class_2624;method_11282()Lnet/minecraft/class_2371;
official j
Ldpd;j()Ljr;
-
setHeldStacks
- Specified by:
setHeldStacks
in classLockableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector named setHeldStacks
Lnet/minecraft/block/entity/LockableContainerBlockEntity;setHeldStacks(Lnet/minecraft/util/collection/DefaultedList;)V
intermediary method_11281
Lnet/minecraft/class_2624;method_11281(Lnet/minecraft/class_2371;)V
official a
Ldpd;a(Ljr;)V
-
onEntityCollided
public static void onEntityCollided(World world, BlockPos pos, BlockState state, Entity entity, HopperBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named onEntityCollided
Lnet/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;)V
intermediary method_11236
Lnet/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;)V
official a
Ldqi;a(Ldca;Liz;Ldse;Lbsw;Ldqi;)V
-
createScreenHandler
- Specified by:
createScreenHandler
in classLockableContainerBlockEntity
- Mappings:
Namespace Name Mixin selector named createScreenHandler
Lnet/minecraft/block/entity/LockableContainerBlockEntity;createScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;
intermediary method_5465
Lnet/minecraft/class_2624;method_5465(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;
official a
Ldpd;a(ILcmy;)Lcpw;
-