Class class_9578
- All Implemented Interfaces:
Inventory,SidedInventory,RecipeInputProvider,RecipeUnlocker,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,Nameable
- Mappings:
Namespace Name official drlintermediary net/minecraft/class_9578named net/minecraft/class_9578
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordprivate static final recordprivate static final recordprivate static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CachedMapper<class_9578.class_9581, class_9578.class_9582> protected static final intprotected static final intprotected static final intprotected static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected DefaultedList<ItemStack> protected final PropertyDelegateprivate static final int[]private static final int[]private static final int[](package private) int(package private) int(package private) int(package private) intprivate final Object2IntOpenHashMap<Identifier> private floatFields 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 TypeMethodDescriptionbooleancanExtract(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.private static intmethod_59196(World world, class_9578 class_9578) static voidmethod_59197(World world, BlockPos blockPos, BlockState blockState, class_9578 class_9578) private static booleanmethod_59198(DynamicRegistryManager dynamicRegistryManager, @Nullable class_9578.class_9582 class_9582, DefaultedList<ItemStack> defaultedList, int int2) protected intmethod_59200(ItemStack itemStack) private class_9578.class_9582method_59201(World world) private static booleanmethod_59202(DynamicRegistryManager dynamicRegistryManager, @Nullable class_9578.class_9582 class_9582, DefaultedList<ItemStack> defaultedList, int int2) static booleanmethod_59203(ItemStack itemStack) floatprivate booleanprivate booleanvoidprovideRecipeInputs(RecipeMatcher finder) voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt.protected voidsetHeldStacks(DefaultedList<ItemStack> inventory) voidsetLastRecipe(@Nullable RecipeEntry<?> recipe) voidSets the stack stored atslottostack.intsize()Returns the size of the inventory.voidunlockLastRecipe(PlayerEntity player, List<ItemStack> ingredients) protected voidwriteNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
addComponents, canPlayerUse, checkUnlocked, checkUnlocked, clear, createMenu, getCustomName, getDisplayName, getName, getStack, isEmpty, readComponents, removeFromCopiedStackNbt, removeStack, removeStackMethods 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, removeStackMethods inherited from interface net.minecraft.util.Nameable
hasCustomNameMethods inherited from interface net.minecraft.recipe.RecipeUnlocker
shouldCraftRecipe
-
Field Details
-
field_50962
protected static final int field_50962- See Also:
- Mappings:
Namespace Name Mixin selector official bLdrl;b:Iintermediary field_50962Lnet/minecraft/class_9578;field_50962:Inamed field_50962Lnet/minecraft/class_9578;field_50962:I
-
field_50963
protected static final int field_50963- See Also:
- Mappings:
Namespace Name Mixin selector official cLdrl;c:Iintermediary field_50963Lnet/minecraft/class_9578;field_50963:Inamed field_50963Lnet/minecraft/class_9578;field_50963:I
-
field_50964
protected static final int field_50964- See Also:
- Mappings:
Namespace Name Mixin selector official dLdrl;d:Iintermediary field_50964Lnet/minecraft/class_9578;field_50964:Inamed field_50964Lnet/minecraft/class_9578;field_50964:I
-
field_50965
protected static final int field_50965- See Also:
- Mappings:
Namespace Name Mixin selector official eLdrl;e:Iintermediary field_50965Lnet/minecraft/class_9578;field_50965:Inamed field_50965Lnet/minecraft/class_9578;field_50965:I
-
field_50966
public static final int field_50966- See Also:
- Mappings:
Namespace Name Mixin selector official fLdrl;f:Iintermediary field_50966Lnet/minecraft/class_9578;field_50966:Inamed field_50966Lnet/minecraft/class_9578;field_50966:I
-
field_50975
private static final int[] field_50975- Mappings:
Namespace Name Mixin selector official rLdrl;r:[Iintermediary field_50975Lnet/minecraft/class_9578;field_50975:[Inamed field_50975Lnet/minecraft/class_9578;field_50975:[I
-
field_50976
private static final int[] field_50976- Mappings:
Namespace Name Mixin selector official sLdrl;s:[Iintermediary field_50976Lnet/minecraft/class_9578;field_50976:[Inamed field_50976Lnet/minecraft/class_9578;field_50976:[I
-
field_50977
private static final int[] field_50977- Mappings:
Namespace Name Mixin selector official tLdrl;t:[Iintermediary field_50977Lnet/minecraft/class_9578;field_50977:[Inamed field_50977Lnet/minecraft/class_9578;field_50977:[I
-
field_50967
public static final int field_50967- See Also:
- Mappings:
Namespace Name Mixin selector official gLdrl;g:Iintermediary field_50967Lnet/minecraft/class_9578;field_50967:Inamed field_50967Lnet/minecraft/class_9578;field_50967:I
-
field_50968
public static final int field_50968- See Also:
- Mappings:
Namespace Name Mixin selector official hLdrl;h:Iintermediary field_50968Lnet/minecraft/class_9578;field_50968:Inamed field_50968Lnet/minecraft/class_9578;field_50968:I
-
field_50969
public static final int field_50969- See Also:
- Mappings:
Namespace Name Mixin selector official iLdrl;i:Iintermediary field_50969Lnet/minecraft/class_9578;field_50969:Inamed field_50969Lnet/minecraft/class_9578;field_50969:I
-
field_50970
public static final int field_50970- See Also:
- Mappings:
Namespace Name Mixin selector official jLdrl;j:Iintermediary field_50970Lnet/minecraft/class_9578;field_50970:Inamed field_50970Lnet/minecraft/class_9578;field_50970:I
-
field_50971
public static final int field_50971- See Also:
- Mappings:
Namespace Name Mixin selector official kLdrl;k:Iintermediary field_50971Lnet/minecraft/class_9578;field_50971:Inamed field_50971Lnet/minecraft/class_9578;field_50971:I
-
field_50972
public static final int field_50972- See Also:
- Mappings:
Namespace Name Mixin selector official lLdrl;l:Iintermediary field_50972Lnet/minecraft/class_9578;field_50972:Inamed field_50972Lnet/minecraft/class_9578;field_50972:I
-
field_50973
- Mappings:
Namespace Name Mixin selector official mLdrl;m:Ljj;intermediary field_50973Lnet/minecraft/class_9578;field_50973:Lnet/minecraft/class_2371;named field_50973Lnet/minecraft/class_9578;field_50973:Lnet/minecraft/util/collection/DefaultedList;
-
field_50978
int field_50978- Mappings:
Namespace Name Mixin selector official uLdrl;u:Iintermediary field_50978Lnet/minecraft/class_9578;field_50978:Inamed field_50978Lnet/minecraft/class_9578;field_50978:I
-
field_50979
int field_50979- Mappings:
Namespace Name Mixin selector official vLdrl;v:Iintermediary field_50979Lnet/minecraft/class_9578;field_50979:Inamed field_50979Lnet/minecraft/class_9578;field_50979:I
-
field_50980
int field_50980- Mappings:
Namespace Name Mixin selector official wLdrl;w:Iintermediary field_50980Lnet/minecraft/class_9578;field_50980:Inamed field_50980Lnet/minecraft/class_9578;field_50980:I
-
field_50981
int field_50981- Mappings:
Namespace Name Mixin selector official xLdrl;x:Iintermediary field_50981Lnet/minecraft/class_9578;field_50981:Inamed field_50981Lnet/minecraft/class_9578;field_50981:I
-
field_50974
- Mappings:
Namespace Name Mixin selector official qLdrl;q:Lcpq;intermediary field_50974Lnet/minecraft/class_9578;field_50974:Lnet/minecraft/class_3913;named field_50974Lnet/minecraft/class_9578;field_50974:Lnet/minecraft/screen/PropertyDelegate;
-
field_50982
- Mappings:
Namespace Name Mixin selector official yLdrl;y:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;intermediary field_50982Lnet/minecraft/class_9578;field_50982:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;named field_50982Lnet/minecraft/class_9578;field_50982:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;
-
field_50983
private float field_50983- Mappings:
Namespace Name Mixin selector official zLdrl;z:Fintermediary field_50983Lnet/minecraft/class_9578;field_50983:Fnamed field_50983Lnet/minecraft/class_9578;field_50983:F
-
field_50961
- Mappings:
Namespace Name Mixin selector official ALdrl;A:Lazb;intermediary field_50961Lnet/minecraft/class_9578;field_50961:Lnet/minecraft/class_8105;named field_50961Lnet/minecraft/class_9578;field_50961:Lnet/minecraft/util/CachedMapper;
-
-
Constructor Details
-
class_9578
-
-
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;
-
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;
-
method_59201
- Mappings:
Namespace Name Mixin selector official bLdrl;b(Ldca;)Ldrl$d;intermediary method_59201Lnet/minecraft/class_9578;method_59201(Lnet/minecraft/class_1937;)Lnet/minecraft/class_9578$class_9582;named method_59201Lnet/minecraft/class_9578;method_59201(Lnet/minecraft/world/World;)Lnet/minecraft/class_9578$class_9582;
-
method_59204
- Mappings:
Namespace Name Mixin selector official fLdrl;f()Ljava/util/Map;intermediary method_59204Lnet/minecraft/class_9578;method_59204()Ljava/util/Map;named method_59204Lnet/minecraft/class_9578;method_59204()Ljava/util/Map;
-
method_59205
public float method_59205()- Mappings:
Namespace Name Mixin selector official lLdrl;l()Fintermediary method_59205Lnet/minecraft/class_9578;method_59205()Fnamed method_59205Lnet/minecraft/class_9578;method_59205()F
-
method_59206
private boolean method_59206()- Mappings:
Namespace Name Mixin selector official tLdrl;t()Zintermediary method_59206Lnet/minecraft/class_9578;method_59206()Znamed method_59206Lnet/minecraft/class_9578;method_59206()Z
-
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
-
method_59197
public static void method_59197(World world, BlockPos blockPos, BlockState blockState, class_9578 class_9578) - Mappings:
Namespace Name Mixin selector official aLdrl;a(Ldca;Lir;Ldtc;Ldrl;)Vintermediary method_59197Lnet/minecraft/class_9578;method_59197(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_9578;)Vnamed method_59197Lnet/minecraft/class_9578;method_59197(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/class_9578;)V
-
method_59207
private boolean method_59207()- Mappings:
Namespace Name Mixin selector official uLdrl;u()Zintermediary method_59207Lnet/minecraft/class_9578;method_59207()Znamed method_59207Lnet/minecraft/class_9578;method_59207()Z
-
method_59198
private static boolean method_59198(DynamicRegistryManager dynamicRegistryManager, @Nullable @Nullable class_9578.class_9582 class_9582, DefaultedList<ItemStack> defaultedList, int int2) - Mappings:
Namespace Name Mixin selector official aLdrl;a(Ljo;Ldrl$d;Ljj;I)Zintermediary method_59198Lnet/minecraft/class_9578;method_59198(Lnet/minecraft/class_5455;Lnet/minecraft/class_9578$class_9582;Lnet/minecraft/class_2371;I)Znamed method_59198Lnet/minecraft/class_9578;method_59198(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/class_9578$class_9582;Lnet/minecraft/util/collection/DefaultedList;I)Z
-
method_59202
private static boolean method_59202(DynamicRegistryManager dynamicRegistryManager, @Nullable @Nullable class_9578.class_9582 class_9582, DefaultedList<ItemStack> defaultedList, int int2) - Mappings:
Namespace Name Mixin selector official bLdrl;b(Ljo;Ldrl$d;Ljj;I)Zintermediary method_59202Lnet/minecraft/class_9578;method_59202(Lnet/minecraft/class_5455;Lnet/minecraft/class_9578$class_9582;Lnet/minecraft/class_2371;I)Znamed method_59202Lnet/minecraft/class_9578;method_59202(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/class_9578$class_9582;Lnet/minecraft/util/collection/DefaultedList;I)Z
-
method_59200
- Mappings:
Namespace Name Mixin selector official bLdrl;b(Lcuh;)Iintermediary method_59200Lnet/minecraft/class_9578;method_59200(Lnet/minecraft/class_1799;)Inamed method_59200Lnet/minecraft/class_9578;method_59200(Lnet/minecraft/item/ItemStack;)I
-
method_59196
- Mappings:
Namespace Name Mixin selector official aLdrl;a(Ldca;Ldrl;)Iintermediary method_59196Lnet/minecraft/class_9578;method_59196(Lnet/minecraft/class_1937;Lnet/minecraft/class_9578;)Inamed method_59196Lnet/minecraft/class_9578;method_59196(Lnet/minecraft/world/World;Lnet/minecraft/class_9578;)I
-
method_59203
- Mappings:
Namespace Name Mixin selector official cLdrl;c(Lcuh;)Zintermediary method_59203Lnet/minecraft/class_9578;method_59203(Lnet/minecraft/class_1799;)Znamed method_59203Lnet/minecraft/class_9578;method_59203(Lnet/minecraft/item/ItemStack;)Z
-
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
-
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
-
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. -
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
-
setStack
Sets the stack stored atslottostack.- Specified by:
setStackin interfaceInventory- Overrides:
setStackin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLbpt;a(ILcuh;)Vintermediary method_5447Lnet/minecraft/class_1263;method_5447(ILnet/minecraft/class_1799;)Vnamed setStackLnet/minecraft/inventory/Inventory;setStack(ILnet/minecraft/item/ItemStack;)V
-
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
-
setLastRecipe
- Specified by:
setLastRecipein interfaceRecipeUnlocker- Mappings:
Namespace Name Mixin selector official aLcqy;a(Lczc;)Vintermediary method_7662Lnet/minecraft/class_1732;method_7662(Lnet/minecraft/class_8786;)Vnamed setLastRecipeLnet/minecraft/recipe/RecipeUnlocker;setLastRecipe(Lnet/minecraft/recipe/RecipeEntry;)V
-
getLastRecipe
- Specified by:
getLastRecipein interfaceRecipeUnlocker- Mappings:
Namespace Name Mixin selector official dLcqy;d()Lczc;intermediary method_7663Lnet/minecraft/class_1732;method_7663()Lnet/minecraft/class_8786;named getLastRecipeLnet/minecraft/recipe/RecipeUnlocker;getLastRecipe()Lnet/minecraft/recipe/RecipeEntry;
-
unlockLastRecipe
- Specified by:
unlockLastRecipein interfaceRecipeUnlocker- Mappings:
Namespace Name Mixin selector official aLcqy;a(Lcly;Ljava/util/List;)Vintermediary method_7664Lnet/minecraft/class_1732;method_7664(Lnet/minecraft/class_1657;Ljava/util/List;)Vnamed unlockLastRecipeLnet/minecraft/recipe/RecipeUnlocker;unlockLastRecipe(Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;)V
-
provideRecipeInputs
- Specified by:
provideRecipeInputsin interfaceRecipeInputProvider- Mappings:
Namespace Name Mixin selector official aLcrj;a(Lcmc;)Vintermediary method_7683Lnet/minecraft/class_1737;method_7683(Lnet/minecraft/class_1662;)Vnamed provideRecipeInputsLnet/minecraft/recipe/RecipeInputProvider;provideRecipeInputs(Lnet/minecraft/recipe/RecipeMatcher;)V
-