Class BrewingStandBlockEntity

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

public class BrewingStandBlockEntity extends LockableContainerBlockEntity implements SidedInventory
Mappings:
Namespace Name
named net/minecraft/block/entity/BrewingStandBlockEntity
intermediary net/minecraft/class_2589
official dpm
  • Field Details

    • INPUT_SLOT_INDEX

      private static final int INPUT_SLOT_INDEX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named INPUT_SLOT_INDEX Lnet/minecraft/block/entity/BrewingStandBlockEntity;INPUT_SLOT_INDEX:I
      intermediary field_31328 Lnet/minecraft/class_2589;field_31328:I
      official g Ldpm;g:I
    • FUEL_SLOT_INDEX

      private static final int FUEL_SLOT_INDEX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FUEL_SLOT_INDEX Lnet/minecraft/block/entity/BrewingStandBlockEntity;FUEL_SLOT_INDEX:I
      intermediary field_31329 Lnet/minecraft/class_2589;field_31329:I
      official h Ldpm;h:I
    • TOP_SLOTS

      private static final int[] TOP_SLOTS
      Mappings:
      Namespace Name Mixin selector
      named TOP_SLOTS Lnet/minecraft/block/entity/BrewingStandBlockEntity;TOP_SLOTS:[I
      intermediary field_11886 Lnet/minecraft/class_2589;field_11886:[I
      official i Ldpm;i:[I
    • BOTTOM_SLOTS

      private static final int[] BOTTOM_SLOTS
      Mappings:
      Namespace Name Mixin selector
      named BOTTOM_SLOTS Lnet/minecraft/block/entity/BrewingStandBlockEntity;BOTTOM_SLOTS:[I
      intermediary field_11879 Lnet/minecraft/class_2589;field_11879:[I
      official j Ldpm;j:[I
    • SIDE_SLOTS

      private static final int[] SIDE_SLOTS
      Mappings:
      Namespace Name Mixin selector
      named SIDE_SLOTS Lnet/minecraft/block/entity/BrewingStandBlockEntity;SIDE_SLOTS:[I
      intermediary field_11880 Lnet/minecraft/class_2589;field_11880:[I
      official k Ldpm;k:[I
    • MAX_FUEL_USES

      public static final int MAX_FUEL_USES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_FUEL_USES Lnet/minecraft/block/entity/BrewingStandBlockEntity;MAX_FUEL_USES:I
      intermediary field_31324 Lnet/minecraft/class_2589;field_31324:I
      official b Ldpm;b:I
    • BREW_TIME_PROPERTY_INDEX

      public static final int BREW_TIME_PROPERTY_INDEX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BREW_TIME_PROPERTY_INDEX Lnet/minecraft/block/entity/BrewingStandBlockEntity;BREW_TIME_PROPERTY_INDEX:I
      intermediary field_31325 Lnet/minecraft/class_2589;field_31325:I
      official c Ldpm;c:I
    • FUEL_PROPERTY_INDEX

      public static final int FUEL_PROPERTY_INDEX
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named FUEL_PROPERTY_INDEX Lnet/minecraft/block/entity/BrewingStandBlockEntity;FUEL_PROPERTY_INDEX:I
      intermediary field_31326 Lnet/minecraft/class_2589;field_31326:I
      official d Ldpm;d:I
    • PROPERTY_COUNT

      public static final int PROPERTY_COUNT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named PROPERTY_COUNT Lnet/minecraft/block/entity/BrewingStandBlockEntity;PROPERTY_COUNT:I
      intermediary field_31327 Lnet/minecraft/class_2589;field_31327:I
      official e Ldpm;e:I
    • inventory

      private DefaultedList<ItemStack> inventory
      Mappings:
      Namespace Name Mixin selector
      named inventory Lnet/minecraft/block/entity/BrewingStandBlockEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;
      intermediary field_11882 Lnet/minecraft/class_2589;field_11882:Lnet/minecraft/class_2371;
      official l Ldpm;l:Ljr;
    • brewTime

      int brewTime
      Mappings:
      Namespace Name Mixin selector
      named brewTime Lnet/minecraft/block/entity/BrewingStandBlockEntity;brewTime:I
      intermediary field_11878 Lnet/minecraft/class_2589;field_11878:I
      official m Ldpm;m:I
    • slotsEmptyLastTick

      private boolean[] slotsEmptyLastTick
      Mappings:
      Namespace Name Mixin selector
      named slotsEmptyLastTick Lnet/minecraft/block/entity/BrewingStandBlockEntity;slotsEmptyLastTick:[Z
      intermediary field_11883 Lnet/minecraft/class_2589;field_11883:[Z
      official q Ldpm;q:[Z
    • itemBrewing

      private Item itemBrewing
      Mappings:
      Namespace Name Mixin selector
      named itemBrewing Lnet/minecraft/block/entity/BrewingStandBlockEntity;itemBrewing:Lnet/minecraft/item/Item;
      intermediary field_11881 Lnet/minecraft/class_2589;field_11881:Lnet/minecraft/class_1792;
      official r Ldpm;r:Lcum;
    • fuel

      int fuel
      Mappings:
      Namespace Name Mixin selector
      named fuel Lnet/minecraft/block/entity/BrewingStandBlockEntity;fuel:I
      intermediary field_11885 Lnet/minecraft/class_2589;field_11885:I
      official s Ldpm;s:I
    • propertyDelegate

      protected final PropertyDelegate propertyDelegate
      Mappings:
      Namespace Name Mixin selector
      named propertyDelegate Lnet/minecraft/block/entity/BrewingStandBlockEntity;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
      intermediary field_17381 Lnet/minecraft/class_2589;field_17381:Lnet/minecraft/class_3913;
      official f Ldpm;f:Lcqg;
  • Constructor Details

    • BrewingStandBlockEntity

      public BrewingStandBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/entity/BrewingStandBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary <init> Lnet/minecraft/class_2589;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official <init> Ldpm;<init>(Liz;Ldse;)V
  • Method Details

    • getContainerName

      protected Text getContainerName()
      Specified by:
      getContainerName in class LockableContainerBlockEntity
      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;
    • 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
      named size Lnet/minecraft/inventory/Inventory;size()I
      intermediary method_5439 Lnet/minecraft/class_1263;method_5439()I
      official b Lbqp;b()I
    • getHeldStacks

      protected DefaultedList<ItemStack> getHeldStacks()
      Specified by:
      getHeldStacks in class LockableContainerBlockEntity
      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

      protected void setHeldStacks(DefaultedList<ItemStack> inventory)
      Specified by:
      setHeldStacks in class LockableContainerBlockEntity
      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
    • tick

      public static void tick(World world, BlockPos pos, BlockState state, BrewingStandBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/block/entity/BrewingStandBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BrewingStandBlockEntity;)V
      intermediary method_31665 Lnet/minecraft/class_2589;method_31665(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2589;)V
      official a Ldpm;a(Ldca;Liz;Ldse;Ldpm;)V
    • getSlotsEmpty

      private boolean[] getSlotsEmpty()
      Mappings:
      Namespace Name Mixin selector
      named getSlotsEmpty Lnet/minecraft/block/entity/BrewingStandBlockEntity;getSlotsEmpty()[Z
      intermediary method_11028 Lnet/minecraft/class_2589;method_11028()[Z
      official f Ldpm;f()[Z
    • canCraft

      private static boolean canCraft(BrewingRecipeRegistry brewingRecipeRegistry, DefaultedList<ItemStack> slots)
      Mappings:
      Namespace Name Mixin selector
      named canCraft Lnet/minecraft/block/entity/BrewingStandBlockEntity;canCraft(Lnet/minecraft/recipe/BrewingRecipeRegistry;Lnet/minecraft/util/collection/DefaultedList;)Z
      intermediary method_11027 Lnet/minecraft/class_2589;method_11027(Lnet/minecraft/class_1845;Lnet/minecraft/class_2371;)Z
      official a Ldpm;a(Lcwr;Ljr;)Z
    • craft

      private static void craft(World world, BlockPos pos, DefaultedList<ItemStack> slots)
      Mappings:
      Namespace Name Mixin selector
      named craft Lnet/minecraft/block/entity/BrewingStandBlockEntity;craft(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/collection/DefaultedList;)V
      intermediary method_11029 Lnet/minecraft/class_2589;method_11029(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2371;)V
      official a Ldpm;a(Ldca;Liz;Ljr;)V
    • readNbt

      protected 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
      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

      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
      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
    • 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
      named isValid Lnet/minecraft/inventory/Inventory;isValid(ILnet/minecraft/item/ItemStack;)Z
      intermediary method_5437 Lnet/minecraft/class_1263;method_5437(ILnet/minecraft/class_1799;)Z
      official b Lbqp;b(ILcur;)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
      named getAvailableSlots Lnet/minecraft/inventory/SidedInventory;getAvailableSlots(Lnet/minecraft/util/math/Direction;)[I
      intermediary method_5494 Lnet/minecraft/class_1278;method_5494(Lnet/minecraft/class_2350;)[I
      official a Lbri;a(Lje;)[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
      named canInsert Lnet/minecraft/inventory/SidedInventory;canInsert(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Z
      intermediary method_5492 Lnet/minecraft/class_1278;method_5492(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Z
      official a Lbri;a(ILcur;Lje;)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
      named canExtract Lnet/minecraft/inventory/SidedInventory;canExtract(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Z
      intermediary method_5493 Lnet/minecraft/class_1278;method_5493(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Z
      official b Lbri;b(ILcur;Lje;)Z
    • createScreenHandler

      protected ScreenHandler createScreenHandler(int syncId, PlayerInventory playerInventory)
      Specified by:
      createScreenHandler in class LockableContainerBlockEntity
      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;