Class class_9572
- All Implemented Interfaces:
Inventory,SidedInventory,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,Nameable
- Mappings:
Namespace Name official dqyintermediary net/minecraft/class_9572named net/minecraft/class_9572
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) shortprivate DefaultedList<ItemStack> private static final int[]private static final int[]static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final charstatic final charstatic final charstatic final charstatic final intprotected final PropertyDelegate(package private) short(package private) char(package private) char(package private) char(package private) booleanFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, worldFields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponents(ComponentMap.Builder componentMapBuilder) booleancanExtract(int slot, ItemStack stack, Direction dir) Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanReturns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.protected ScreenHandlercreateScreenHandler(int syncId, PlayerInventory playerInventory) int[]getAvailableSlots(Direction side) Returns the available slot positions that are reachable from a given side.protected Textprotected DefaultedList<ItemStack> booleanReturns whetherstackis valid for theslot.static ItemStackmethod_59167(char char2, char char3) static booleanmethod_59168(ItemStack itemStack, char char2, char char3) static voidmethod_59169(World world, BlockPos blockPos, BlockState blockState, class_9572 class_9572) voidreadComponents(ComponentMap components) voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt.voidprotected voidsetHeldStacks(DefaultedList<ItemStack> inventory) intsize()Returns the size of the inventory.protected voidwriteNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
canPlayerUse, checkUnlocked, checkUnlocked, clear, createMenu, getCustomName, getDisplayName, getName, getStack, isEmpty, removeStack, removeStack, setStackMethods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbtMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, getStack, isEmpty, markDirty, method_58817, method_58819, onClose, onOpen, removeStack, removeStack, setStackMethods inherited from interface net.minecraft.util.Nameable
hasCustomName
-
Field Details
-
field_50917
public static final int field_50917- See Also:
- Mappings:
Namespace Name Mixin selector official bLdqy;b:Iintermediary field_50917Lnet/minecraft/class_9572;field_50917:Inamed field_50917Lnet/minecraft/class_9572;field_50917:I
-
field_50918
public static final int field_50918- See Also:
- Mappings:
Namespace Name Mixin selector official cLdqy;c:Iintermediary field_50918Lnet/minecraft/class_9572;field_50918:Inamed field_50918Lnet/minecraft/class_9572;field_50918:I
-
field_50919
public static final int field_50919- See Also:
- Mappings:
Namespace Name Mixin selector official dLdqy;d:Iintermediary field_50919Lnet/minecraft/class_9572;field_50919:Inamed field_50919Lnet/minecraft/class_9572;field_50919:I
-
field_50920
public static final int field_50920- See Also:
- Mappings:
Namespace Name Mixin selector official eLdqy;e:Iintermediary field_50920Lnet/minecraft/class_9572;field_50920:Inamed field_50920Lnet/minecraft/class_9572;field_50920:I
-
field_50921
public static final int field_50921- See Also:
- Mappings:
Namespace Name Mixin selector official fLdqy;f:Iintermediary field_50921Lnet/minecraft/class_9572;field_50921:Inamed field_50921Lnet/minecraft/class_9572;field_50921:I
-
field_50922
public static final int field_50922- See Also:
- Mappings:
Namespace Name Mixin selector official gLdqy;g:Iintermediary field_50922Lnet/minecraft/class_9572;field_50922:Inamed field_50922Lnet/minecraft/class_9572;field_50922:I
-
field_50923
public static final int field_50923- See Also:
- Mappings:
Namespace Name Mixin selector official hLdqy;h:Iintermediary field_50923Lnet/minecraft/class_9572;field_50923:Inamed field_50923Lnet/minecraft/class_9572;field_50923:I
-
field_50924
public static final int field_50924- See Also:
- Mappings:
Namespace Name Mixin selector official iLdqy;i:Iintermediary field_50924Lnet/minecraft/class_9572;field_50924:Inamed field_50924Lnet/minecraft/class_9572;field_50924:I
-
field_50925
public static final int field_50925- See Also:
- Mappings:
Namespace Name Mixin selector official jLdqy;j:Iintermediary field_50925Lnet/minecraft/class_9572;field_50925:Inamed field_50925Lnet/minecraft/class_9572;field_50925:I
-
field_50926
public static final int field_50926- See Also:
- Mappings:
Namespace Name Mixin selector official kLdqy;k:Iintermediary field_50926Lnet/minecraft/class_9572;field_50926:Inamed field_50926Lnet/minecraft/class_9572;field_50926:I
-
field_50927
public static final int field_50927- See Also:
- Mappings:
Namespace Name Mixin selector official lLdqy;l:Iintermediary field_50927Lnet/minecraft/class_9572;field_50927:Inamed field_50927Lnet/minecraft/class_9572;field_50927:I
-
field_50928
public static final char field_50928- See Also:
- Mappings:
Namespace Name Mixin selector official mLdqy;m:Cintermediary field_50928Lnet/minecraft/class_9572;field_50928:Cnamed field_50928Lnet/minecraft/class_9572;field_50928:C
-
field_50929
public static final char field_50929- See Also:
- Mappings:
Namespace Name Mixin selector official qLdqy;q:Cintermediary field_50929Lnet/minecraft/class_9572;field_50929:Cnamed field_50929Lnet/minecraft/class_9572;field_50929:C
-
field_50930
public static final char field_50930- See Also:
- Mappings:
Namespace Name Mixin selector official rLdqy;r:Cintermediary field_50930Lnet/minecraft/class_9572;field_50930:Cnamed field_50930Lnet/minecraft/class_9572;field_50930:C
-
field_50931
public static final char field_50931- See Also:
- Mappings:
Namespace Name Mixin selector official sLdqy;s:Cintermediary field_50931Lnet/minecraft/class_9572;field_50931:Cnamed field_50931Lnet/minecraft/class_9572;field_50931:C
-
field_50932
public static final int field_50932- See Also:
- Mappings:
Namespace Name Mixin selector official tLdqy;t:Iintermediary field_50932Lnet/minecraft/class_9572;field_50932:Inamed field_50932Lnet/minecraft/class_9572;field_50932:I
-
field_50915
private static final int[] field_50915- Mappings:
Namespace Name Mixin selector official CLdqy;C:[Iintermediary field_50915Lnet/minecraft/class_9572;field_50915:[Inamed field_50915Lnet/minecraft/class_9572;field_50915:[I
-
field_50916
private static final int[] field_50916- Mappings:
Namespace Name Mixin selector official DLdqy;D:[Iintermediary field_50916Lnet/minecraft/class_9572;field_50916:[Inamed field_50916Lnet/minecraft/class_9572;field_50916:[I
-
field_50934
short field_50934- Mappings:
Namespace Name Mixin selector official vLdqy;v:Sintermediary field_50934Lnet/minecraft/class_9572;field_50934:Snamed field_50934Lnet/minecraft/class_9572;field_50934:S
-
field_50935
char field_50935- Mappings:
Namespace Name Mixin selector official wLdqy;w:Cintermediary field_50935Lnet/minecraft/class_9572;field_50935:Cnamed field_50935Lnet/minecraft/class_9572;field_50935:C
-
field_50936
char field_50936- Mappings:
Namespace Name Mixin selector official xLdqy;x:Cintermediary field_50936Lnet/minecraft/class_9572;field_50936:Cnamed field_50936Lnet/minecraft/class_9572;field_50936:C
-
field_50937
char field_50937- Mappings:
Namespace Name Mixin selector official yLdqy;y:Cintermediary field_50937Lnet/minecraft/class_9572;field_50937:Cnamed field_50937Lnet/minecraft/class_9572;field_50937:C
-
field_50938
boolean field_50938- Mappings:
Namespace Name Mixin selector official zLdqy;z:Zintermediary field_50938Lnet/minecraft/class_9572;field_50938:Znamed field_50938Lnet/minecraft/class_9572;field_50938:Z
-
field_50913
short field_50913- Mappings:
Namespace Name Mixin selector official ALdqy;A:Sintermediary field_50913Lnet/minecraft/class_9572;field_50913:Snamed field_50913Lnet/minecraft/class_9572;field_50913:S
-
field_50914
- Mappings:
Namespace Name Mixin selector official BLdqy;B:Ljj;intermediary field_50914Lnet/minecraft/class_9572;field_50914:Lnet/minecraft/class_2371;named field_50914Lnet/minecraft/class_9572;field_50914:Lnet/minecraft/util/collection/DefaultedList;
-
field_50933
- Mappings:
Namespace Name Mixin selector official uLdqy;u:Lcpq;intermediary field_50933Lnet/minecraft/class_9572;field_50933:Lnet/minecraft/class_3913;named field_50933Lnet/minecraft/class_9572;field_50933:Lnet/minecraft/screen/PropertyDelegate;
-
-
Constructor Details
-
class_9572
-
-
Method Details
-
getContainerName
- Specified by:
getContainerNamein classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official kLdpv;k()Lxe;intermediary method_17823Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;named getContainerNameLnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;
-
getHeldStacks
- Specified by:
getHeldStacksin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official jLdpv;j()Ljj;intermediary method_11282Lnet/minecraft/class_2624;method_11282()Lnet/minecraft/class_2371;named getHeldStacksLnet/minecraft/block/entity/LockableContainerBlockEntity;getHeldStacks()Lnet/minecraft/util/collection/DefaultedList;
-
setHeldStacks
- Specified by:
setHeldStacksin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLdpv;a(Ljj;)Vintermediary method_11281Lnet/minecraft/class_2624;method_11281(Lnet/minecraft/class_2371;)Vnamed setHeldStacksLnet/minecraft/block/entity/LockableContainerBlockEntity;setHeldStacks(Lnet/minecraft/util/collection/DefaultedList;)V
-
createScreenHandler
- Specified by:
createScreenHandlerin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLdpv;a(ILclx;)Lcpg;intermediary method_5465Lnet/minecraft/class_2624;method_5465(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;named createScreenHandlerLnet/minecraft/block/entity/LockableContainerBlockEntity;createScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;
-
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.
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:
readNbtin classLockableContainerBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector official aLdqc;a(Luk;Ljc$a;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)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:
writeNbtin classLockableContainerBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector official bLdqc;b(Luk;Ljc$a;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vnamed writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
-
readComponents
- Overrides:
readComponentsin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLdqc;a(Lka;)Vintermediary method_57568Lnet/minecraft/class_2586;method_57568(Lnet/minecraft/class_9323;)Vnamed readComponentsLnet/minecraft/block/entity/BlockEntity;readComponents(Lnet/minecraft/component/ComponentMap;)V
-
addComponents
- Overrides:
addComponentsin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLdqc;a(Lka$a;)Vintermediary method_57567Lnet/minecraft/class_2586;method_57567(Lnet/minecraft/class_9323$class_9324;)Vnamed addComponentsLnet/minecraft/block/entity/BlockEntity;addComponents(Lnet/minecraft/component/ComponentMap$Builder;)V
-
removeFromCopiedStackNbt
- Overrides:
removeFromCopiedStackNbtin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLdqc;a(Luk;)Vintermediary method_57569Lnet/minecraft/class_2586;method_57569(Lnet/minecraft/class_2487;)Vnamed removeFromCopiedStackNbtLnet/minecraft/block/entity/BlockEntity;removeFromCopiedStackNbt(Lnet/minecraft/nbt/NbtCompound;)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. -
getAvailableSlots
Returns the available slot positions that are reachable from a given side.- Specified by:
getAvailableSlotsin interfaceSidedInventory- Returns:
- the available slot positions that are reachable from a given side
- Mappings:
Namespace Name Mixin selector official aLbqm;a(Liw;)[Iintermediary method_5494Lnet/minecraft/class_1278;method_5494(Lnet/minecraft/class_2350;)[Inamed getAvailableSlotsLnet/minecraft/inventory/SidedInventory;getAvailableSlots(Lnet/minecraft/util/math/Direction;)[I
-
isValid
Returns whetherstackis valid for theslot.Implementations can, for example, use this to check whether the item is in a specific tag. This returns
trueby default.- Specified by:
isValidin interfaceInventory- Returns:
- whether
stackis valid for theslot - Mappings:
Namespace Name Mixin selector official bLbpt;b(ILcuh;)Zintermediary method_5437Lnet/minecraft/class_1263;method_5437(ILnet/minecraft/class_1799;)Znamed isValidLnet/minecraft/inventory/Inventory;isValid(ILnet/minecraft/item/ItemStack;)Z
-
method_59168
- Mappings:
Namespace Name Mixin selector official aLdqy;a(Lcuh;CC)Zintermediary method_59168Lnet/minecraft/class_9572;method_59168(Lnet/minecraft/class_1799;CC)Znamed method_59168Lnet/minecraft/class_9572;method_59168(Lnet/minecraft/item/ItemStack;CC)Z
-
method_59167
- Mappings:
Namespace Name Mixin selector official aLdqy;a(CC)Lcuh;intermediary method_59167Lnet/minecraft/class_9572;method_59167(CC)Lnet/minecraft/class_1799;named method_59167Lnet/minecraft/class_9572;method_59167(CC)Lnet/minecraft/item/ItemStack;
-
canInsert
Returns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.- Specified by:
canInsertin interfaceSidedInventory- Returns:
- whether the given stack can be inserted into this inventory at the specified slot position from the given direction
- Mappings:
Namespace Name Mixin selector official aLbqm;a(ILcuh;Liw;)Zintermediary method_5492Lnet/minecraft/class_1278;method_5492(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Znamed canInsertLnet/minecraft/inventory/SidedInventory;canInsert(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Z
-
canExtract
Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.- Specified by:
canExtractin interfaceSidedInventory- Returns:
- whether the given stack can be removed from this inventory at the specified slot position from the given direction
- Mappings:
Namespace Name Mixin selector official bLbqm;b(ILcuh;Liw;)Zintermediary method_5493Lnet/minecraft/class_1278;method_5493(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Znamed canExtractLnet/minecraft/inventory/SidedInventory;canExtract(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Z
-
method_59169
public static void method_59169(World world, BlockPos blockPos, BlockState blockState, class_9572 class_9572) - Mappings:
Namespace Name Mixin selector official aLdqy;a(Ldca;Lir;Ldtc;Ldqy;)Vintermediary method_59169Lnet/minecraft/class_9572;method_59169(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_9572;)Vnamed method_59169Lnet/minecraft/class_9572;method_59169(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/class_9572;)V
-