Package net.minecraft

Class class_9578

All Implemented Interfaces:
Inventory, SidedInventory, RecipeInputProvider, RecipeUnlocker, NamedScreenHandlerFactory, ScreenHandlerFactory, Clearable, Nameable

Mappings:
Namespace Name
official drl
intermediary net/minecraft/class_9578
named net/minecraft/class_9578
  • Field Details

    • field_50962

      protected static final int field_50962
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Ldrl;b:I
      intermediary field_50962 Lnet/minecraft/class_9578;field_50962:I
      named field_50962 Lnet/minecraft/class_9578;field_50962:I
    • field_50963

      protected static final int field_50963
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Ldrl;c:I
      intermediary field_50963 Lnet/minecraft/class_9578;field_50963:I
      named field_50963 Lnet/minecraft/class_9578;field_50963:I
    • field_50964

      protected static final int field_50964
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Ldrl;d:I
      intermediary field_50964 Lnet/minecraft/class_9578;field_50964:I
      named field_50964 Lnet/minecraft/class_9578;field_50964:I
    • field_50965

      protected static final int field_50965
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Ldrl;e:I
      intermediary field_50965 Lnet/minecraft/class_9578;field_50965:I
      named field_50965 Lnet/minecraft/class_9578;field_50965:I
    • field_50966

      public static final int field_50966
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Ldrl;f:I
      intermediary field_50966 Lnet/minecraft/class_9578;field_50966:I
      named field_50966 Lnet/minecraft/class_9578;field_50966:I
    • field_50975

      private static final int[] field_50975
      Mappings:
      Namespace Name Mixin selector
      official r Ldrl;r:[I
      intermediary field_50975 Lnet/minecraft/class_9578;field_50975:[I
      named field_50975 Lnet/minecraft/class_9578;field_50975:[I
    • field_50976

      private static final int[] field_50976
      Mappings:
      Namespace Name Mixin selector
      official s Ldrl;s:[I
      intermediary field_50976 Lnet/minecraft/class_9578;field_50976:[I
      named field_50976 Lnet/minecraft/class_9578;field_50976:[I
    • field_50977

      private static final int[] field_50977
      Mappings:
      Namespace Name Mixin selector
      official t Ldrl;t:[I
      intermediary field_50977 Lnet/minecraft/class_9578;field_50977:[I
      named field_50977 Lnet/minecraft/class_9578;field_50977:[I
    • field_50967

      public static final int field_50967
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Ldrl;g:I
      intermediary field_50967 Lnet/minecraft/class_9578;field_50967:I
      named field_50967 Lnet/minecraft/class_9578;field_50967:I
    • field_50968

      public static final int field_50968
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Ldrl;h:I
      intermediary field_50968 Lnet/minecraft/class_9578;field_50968:I
      named field_50968 Lnet/minecraft/class_9578;field_50968:I
    • field_50969

      public static final int field_50969
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Ldrl;i:I
      intermediary field_50969 Lnet/minecraft/class_9578;field_50969:I
      named field_50969 Lnet/minecraft/class_9578;field_50969:I
    • field_50970

      public static final int field_50970
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Ldrl;j:I
      intermediary field_50970 Lnet/minecraft/class_9578;field_50970:I
      named field_50970 Lnet/minecraft/class_9578;field_50970:I
    • field_50971

      public static final int field_50971
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Ldrl;k:I
      intermediary field_50971 Lnet/minecraft/class_9578;field_50971:I
      named field_50971 Lnet/minecraft/class_9578;field_50971:I
    • field_50972

      public static final int field_50972
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Ldrl;l:I
      intermediary field_50972 Lnet/minecraft/class_9578;field_50972:I
      named field_50972 Lnet/minecraft/class_9578;field_50972:I
    • field_50973

      protected DefaultedList<ItemStack> field_50973
      Mappings:
      Namespace Name Mixin selector
      official m Ldrl;m:Ljj;
      intermediary field_50973 Lnet/minecraft/class_9578;field_50973:Lnet/minecraft/class_2371;
      named field_50973 Lnet/minecraft/class_9578;field_50973:Lnet/minecraft/util/collection/DefaultedList;
    • field_50978

      int field_50978
      Mappings:
      Namespace Name Mixin selector
      official u Ldrl;u:I
      intermediary field_50978 Lnet/minecraft/class_9578;field_50978:I
      named field_50978 Lnet/minecraft/class_9578;field_50978:I
    • field_50979

      int field_50979
      Mappings:
      Namespace Name Mixin selector
      official v Ldrl;v:I
      intermediary field_50979 Lnet/minecraft/class_9578;field_50979:I
      named field_50979 Lnet/minecraft/class_9578;field_50979:I
    • field_50980

      int field_50980
      Mappings:
      Namespace Name Mixin selector
      official w Ldrl;w:I
      intermediary field_50980 Lnet/minecraft/class_9578;field_50980:I
      named field_50980 Lnet/minecraft/class_9578;field_50980:I
    • field_50981

      int field_50981
      Mappings:
      Namespace Name Mixin selector
      official x Ldrl;x:I
      intermediary field_50981 Lnet/minecraft/class_9578;field_50981:I
      named field_50981 Lnet/minecraft/class_9578;field_50981:I
    • field_50974

      protected final PropertyDelegate field_50974
      Mappings:
      Namespace Name Mixin selector
      official q Ldrl;q:Lcpq;
      intermediary field_50974 Lnet/minecraft/class_9578;field_50974:Lnet/minecraft/class_3913;
      named field_50974 Lnet/minecraft/class_9578;field_50974:Lnet/minecraft/screen/PropertyDelegate;
    • field_50982

      private final Object2IntOpenHashMap<Identifier> field_50982
      Mappings:
      Namespace Name Mixin selector
      official y Ldrl;y:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;
      intermediary field_50982 Lnet/minecraft/class_9578;field_50982:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;
      named field_50982 Lnet/minecraft/class_9578;field_50982:Lit/unimi/dsi/fastutil/objects/Object2IntOpenHashMap;
    • field_50983

      private float field_50983
      Mappings:
      Namespace Name Mixin selector
      official z Ldrl;z:F
      intermediary field_50983 Lnet/minecraft/class_9578;field_50983:F
      named field_50983 Lnet/minecraft/class_9578;field_50983:F
    • field_50961

      Mappings:
      Namespace Name Mixin selector
      official A Ldrl;A:Lazb;
      intermediary field_50961 Lnet/minecraft/class_9578;field_50961:Lnet/minecraft/class_8105;
      named field_50961 Lnet/minecraft/class_9578;field_50961:Lnet/minecraft/util/CachedMapper;
  • Constructor Details

  • Method Details

    • getContainerName

      protected Text getContainerName()
      Specified by:
      getContainerName in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official k Ldpv;k()Lxe;
      intermediary method_17823 Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;
      named getContainerName Lnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;
    • createScreenHandler

      protected ScreenHandler createScreenHandler(int syncId, PlayerInventory playerInventory)
      Specified by:
      createScreenHandler in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Ldpv;a(ILclx;)Lcpg;
      intermediary method_5465 Lnet/minecraft/class_2624;method_5465(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;
      named createScreenHandler Lnet/minecraft/block/entity/LockableContainerBlockEntity;createScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;
    • method_59201

      private class_9578.class_9582 method_59201(World world)
      Mappings:
      Namespace Name Mixin selector
      official b Ldrl;b(Ldca;)Ldrl$d;
      intermediary method_59201 Lnet/minecraft/class_9578;method_59201(Lnet/minecraft/class_1937;)Lnet/minecraft/class_9578$class_9582;
      named method_59201 Lnet/minecraft/class_9578;method_59201(Lnet/minecraft/world/World;)Lnet/minecraft/class_9578$class_9582;
    • method_59204

      public static Map<Item,Integer> method_59204()
      Mappings:
      Namespace Name Mixin selector
      official f Ldrl;f()Ljava/util/Map;
      intermediary method_59204 Lnet/minecraft/class_9578;method_59204()Ljava/util/Map;
      named method_59204 Lnet/minecraft/class_9578;method_59204()Ljava/util/Map;
    • method_59205

      public float method_59205()
      Mappings:
      Namespace Name Mixin selector
      official l Ldrl;l()F
      intermediary method_59205 Lnet/minecraft/class_9578;method_59205()F
      named method_59205 Lnet/minecraft/class_9578;method_59205()F
    • method_59206

      private boolean method_59206()
      Mappings:
      Namespace Name Mixin selector
      official t Ldrl;t()Z
      intermediary method_59206 Lnet/minecraft/class_9578;method_59206()Z
      named method_59206 Lnet/minecraft/class_9578;method_59206()Z
    • readNbt

      public void readNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup)
      Reads data from nbt. 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 class LockableContainerBlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldqc;a(Luk;Ljc$a;)V
      intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      named readNbt Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
    • writeNbt

      protected void writeNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup)
      Writes data to nbt. 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 class LockableContainerBlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Ldqc;b(Luk;Ljc$a;)V
      intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      named writeNbt Lnet/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 a Ldrl;a(Ldca;Lir;Ldtc;Ldrl;)V
      intermediary method_59197 Lnet/minecraft/class_9578;method_59197(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_9578;)V
      named method_59197 Lnet/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 u Ldrl;u()Z
      intermediary method_59207 Lnet/minecraft/class_9578;method_59207()Z
      named method_59207 Lnet/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 a Ldrl;a(Ljo;Ldrl$d;Ljj;I)Z
      intermediary method_59198 Lnet/minecraft/class_9578;method_59198(Lnet/minecraft/class_5455;Lnet/minecraft/class_9578$class_9582;Lnet/minecraft/class_2371;I)Z
      named method_59198 Lnet/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 b Ldrl;b(Ljo;Ldrl$d;Ljj;I)Z
      intermediary method_59202 Lnet/minecraft/class_9578;method_59202(Lnet/minecraft/class_5455;Lnet/minecraft/class_9578$class_9582;Lnet/minecraft/class_2371;I)Z
      named method_59202 Lnet/minecraft/class_9578;method_59202(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/class_9578$class_9582;Lnet/minecraft/util/collection/DefaultedList;I)Z
    • method_59200

      protected int method_59200(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official b Ldrl;b(Lcuh;)I
      intermediary method_59200 Lnet/minecraft/class_9578;method_59200(Lnet/minecraft/class_1799;)I
      named method_59200 Lnet/minecraft/class_9578;method_59200(Lnet/minecraft/item/ItemStack;)I
    • method_59196

      private static int method_59196(World world, class_9578 class_9578)
      Mappings:
      Namespace Name Mixin selector
      official a Ldrl;a(Ldca;Ldrl;)I
      intermediary method_59196 Lnet/minecraft/class_9578;method_59196(Lnet/minecraft/class_1937;Lnet/minecraft/class_9578;)I
      named method_59196 Lnet/minecraft/class_9578;method_59196(Lnet/minecraft/world/World;Lnet/minecraft/class_9578;)I
    • method_59203

      public static boolean method_59203(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official c Ldrl;c(Lcuh;)Z
      intermediary method_59203 Lnet/minecraft/class_9578;method_59203(Lnet/minecraft/class_1799;)Z
      named method_59203 Lnet/minecraft/class_9578;method_59203(Lnet/minecraft/item/ItemStack;)Z
    • getAvailableSlots

      public int[] getAvailableSlots(Direction side)
      Returns the available slot positions that are reachable from a given side.
      Specified by:
      getAvailableSlots in interface SidedInventory
      Returns:
      the available slot positions that are reachable from a given side
      Mappings:
      Namespace Name Mixin selector
      official a Lbqm;a(Liw;)[I
      intermediary method_5494 Lnet/minecraft/class_1278;method_5494(Lnet/minecraft/class_2350;)[I
      named getAvailableSlots Lnet/minecraft/inventory/SidedInventory;getAvailableSlots(Lnet/minecraft/util/math/Direction;)[I
    • canInsert

      public boolean canInsert(int slot, ItemStack stack, @Nullable @Nullable Direction dir)
      Returns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.
      Specified by:
      canInsert in interface SidedInventory
      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 a Lbqm;a(ILcuh;Liw;)Z
      intermediary method_5492 Lnet/minecraft/class_1278;method_5492(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Z
      named canInsert Lnet/minecraft/inventory/SidedInventory;canInsert(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Z
    • canExtract

      public boolean canExtract(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.
      Specified by:
      canExtract in interface SidedInventory
      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 b Lbqm;b(ILcuh;Liw;)Z
      intermediary method_5493 Lnet/minecraft/class_1278;method_5493(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Z
      named canExtract Lnet/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 0 to size() - 1. This should remain constant throughout the inventory's lifetime.

      Specified by:
      size in interface Inventory
      Returns:
      the size of the inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lbpt;b()I
      intermediary method_5439 Lnet/minecraft/class_1263;method_5439()I
      named size Lnet/minecraft/inventory/Inventory;size()I
    • getHeldStacks

      protected DefaultedList<ItemStack> getHeldStacks()
      Specified by:
      getHeldStacks in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official j Ldpv;j()Ljj;
      intermediary method_11282 Lnet/minecraft/class_2624;method_11282()Lnet/minecraft/class_2371;
      named getHeldStacks Lnet/minecraft/block/entity/LockableContainerBlockEntity;getHeldStacks()Lnet/minecraft/util/collection/DefaultedList;
    • setHeldStacks

      protected void setHeldStacks(DefaultedList<ItemStack> inventory)
      Specified by:
      setHeldStacks in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Ldpv;a(Ljj;)V
      intermediary method_11281 Lnet/minecraft/class_2624;method_11281(Lnet/minecraft/class_2371;)V
      named setHeldStacks Lnet/minecraft/block/entity/LockableContainerBlockEntity;setHeldStacks(Lnet/minecraft/util/collection/DefaultedList;)V
    • setStack

      public void setStack(int slot, ItemStack stack)
      Sets the stack stored at slot to stack.
      Specified by:
      setStack in interface Inventory
      Overrides:
      setStack in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbpt;a(ILcuh;)V
      intermediary method_5447 Lnet/minecraft/class_1263;method_5447(ILnet/minecraft/class_1799;)V
      named setStack Lnet/minecraft/inventory/Inventory;setStack(ILnet/minecraft/item/ItemStack;)V
    • isValid

      public boolean isValid(int slot, ItemStack stack)
      Returns whether stack is valid for the slot.

      Implementations can, for example, use this to check whether the item is in a specific tag. This returns true by default.

      Specified by:
      isValid in interface Inventory
      Returns:
      whether stack is valid for the slot
      Mappings:
      Namespace Name Mixin selector
      official b Lbpt;b(ILcuh;)Z
      intermediary method_5437 Lnet/minecraft/class_1263;method_5437(ILnet/minecraft/class_1799;)Z
      named isValid Lnet/minecraft/inventory/Inventory;isValid(ILnet/minecraft/item/ItemStack;)Z
    • setLastRecipe

      public void setLastRecipe(@Nullable @Nullable RecipeEntry<?> recipe)
      Specified by:
      setLastRecipe in interface RecipeUnlocker
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a(Lczc;)V
      intermediary method_7662 Lnet/minecraft/class_1732;method_7662(Lnet/minecraft/class_8786;)V
      named setLastRecipe Lnet/minecraft/recipe/RecipeUnlocker;setLastRecipe(Lnet/minecraft/recipe/RecipeEntry;)V
    • getLastRecipe

      @Nullable public @Nullable RecipeEntry<?> getLastRecipe()
      Specified by:
      getLastRecipe in interface RecipeUnlocker
      Mappings:
      Namespace Name Mixin selector
      official d Lcqy;d()Lczc;
      intermediary method_7663 Lnet/minecraft/class_1732;method_7663()Lnet/minecraft/class_8786;
      named getLastRecipe Lnet/minecraft/recipe/RecipeUnlocker;getLastRecipe()Lnet/minecraft/recipe/RecipeEntry;
    • unlockLastRecipe

      public void unlockLastRecipe(PlayerEntity player, List<ItemStack> ingredients)
      Specified by:
      unlockLastRecipe in interface RecipeUnlocker
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a(Lcly;Ljava/util/List;)V
      intermediary method_7664 Lnet/minecraft/class_1732;method_7664(Lnet/minecraft/class_1657;Ljava/util/List;)V
      named unlockLastRecipe Lnet/minecraft/recipe/RecipeUnlocker;unlockLastRecipe(Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;)V
    • provideRecipeInputs

      public void provideRecipeInputs(RecipeMatcher finder)
      Specified by:
      provideRecipeInputs in interface RecipeInputProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lcrj;a(Lcmc;)V
      intermediary method_7683 Lnet/minecraft/class_1737;method_7683(Lnet/minecraft/class_1662;)V
      named provideRecipeInputs Lnet/minecraft/recipe/RecipeInputProvider;provideRecipeInputs(Lnet/minecraft/recipe/RecipeMatcher;)V