Class BrewingStandBlockEntity

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

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

    • TOP_SLOTS

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

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

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

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

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

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

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

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

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

    • BrewingStandBlockEntity

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

    • getContainerName

      protected Text getContainerName()
      Specified by:
      getContainerName in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official g Lcfl;g()Loi;
      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;
    • size

      public int size()
      Specified by:
      size in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official aa_ Lapj;aa_()I
      intermediary method_5439 Lnet/minecraft/class_1263;method_5439()I
      named size Lnet/minecraft/inventory/Inventory;size()I
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official c Lapj;c()Z
      intermediary method_5442 Lnet/minecraft/class_1263;method_5442()Z
      named isEmpty Lnet/minecraft/inventory/Inventory;isEmpty()Z
    • tick

      public static void tick​(World world, BlockPos pos, BlockState state, BrewingStandBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lcfu;a(Lbtv;Lfx;Lcht;Lcfu;)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
      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
    • getSlotsEmpty

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

      private static boolean canCraft​(DefaultedList<ItemStack> slots)
      Mappings:
      Namespace Name Mixin selector
      official a Lcfu;a(Lgj;)Z
      intermediary method_11027 Lnet/minecraft/class_2589;method_11027(Lnet/minecraft/class_2371;)Z
      named canCraft Lnet/minecraft/block/entity/BrewingStandBlockEntity;canCraft(Lnet/minecraft/util/collection/DefaultedList;)Z
    • craft

      private static void craft​(World world, BlockPos pos, DefaultedList<ItemStack> slots)
      Mappings:
      Namespace Name Mixin selector
      official a Lcfu;a(Lbtv;Lfx;Lgj;)V
      intermediary method_11029 Lnet/minecraft/class_2589;method_11029(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2371;)V
      named craft Lnet/minecraft/block/entity/BrewingStandBlockEntity;craft(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/collection/DefaultedList;)V
    • fromTag

      public void fromTag​(CompoundTag tag)
      Overrides:
      fromTag in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcfr;a(Lmq;)V
      intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
      named fromTag Lnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
    • toTag

      public CompoundTag toTag​(CompoundTag tag)
      Overrides:
      toTag in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lcfr;b(Lmq;)Lmq;
      intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
      named toTag Lnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
    • getStack

      public ItemStack getStack​(int slot)
      Fetches the stack currently stored at the given slot. If the slot is empty, or is outside the bounds of this inventory, returns see ItemStack.EMPTY.
      Specified by:
      getStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lapj;a(I)Lbnv;
      intermediary method_5438 Lnet/minecraft/class_1263;method_5438(I)Lnet/minecraft/class_1799;
      named getStack Lnet/minecraft/inventory/Inventory;getStack(I)Lnet/minecraft/item/ItemStack;
    • removeStack

      public ItemStack removeStack​(int slot, int amount)
      Removes a specific number of items from the given slot.
      Specified by:
      removeStack in interface Inventory
      Returns:
      the removed items as a stack
      Mappings:
      Namespace Name Mixin selector
      official a Lapj;a(II)Lbnv;
      intermediary method_5434 Lnet/minecraft/class_1263;method_5434(II)Lnet/minecraft/class_1799;
      named removeStack Lnet/minecraft/inventory/Inventory;removeStack(II)Lnet/minecraft/item/ItemStack;
    • removeStack

      public ItemStack removeStack​(int slot)
      Removes the stack currently stored at the indicated slot.
      Specified by:
      removeStack in interface Inventory
      Returns:
      the stack previously stored at the indicated slot.
      Mappings:
      Namespace Name Mixin selector
      official b Lapj;b(I)Lbnv;
      intermediary method_5441 Lnet/minecraft/class_1263;method_5441(I)Lnet/minecraft/class_1799;
      named removeStack Lnet/minecraft/inventory/Inventory;removeStack(I)Lnet/minecraft/item/ItemStack;
    • setStack

      public void setStack​(int slot, ItemStack stack)
      Specified by:
      setStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lapj;a(ILbnv;)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
    • canPlayerUse

      public boolean canPlayerUse​(PlayerEntity player)
      Specified by:
      canPlayerUse in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lapj;a(Lbhl;)Z
      intermediary method_5443 Lnet/minecraft/class_1263;method_5443(Lnet/minecraft/class_1657;)Z
      named canPlayerUse Lnet/minecraft/inventory/Inventory;canPlayerUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • isValid

      public boolean isValid​(int slot, ItemStack stack)
      Returns whether the given stack is a valid for the indicated slot position.
      Specified by:
      isValid in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lapj;b(ILbnv;)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
    • getAvailableSlots

      public int[] getAvailableSlots​(Direction side)
      Gets the available slot positions that are reachable from a given side.
      Specified by:
      getAvailableSlots in interface SidedInventory
      Mappings:
      Namespace Name Mixin selector
      official a Lapz;a(Lgc;)[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 Direction dir)
      Determines 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
      Mappings:
      Namespace Name Mixin selector
      official a Lapz;a(ILbnv;Lgc;)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)
      Determines 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
      Mappings:
      Namespace Name Mixin selector
      official b Lapz;b(ILbnv;Lgc;)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
    • clear

      public void clear()
      Specified by:
      clear in interface Clearable
      Mappings:
      Namespace Name Mixin selector
      official Z_ Laph;Z_()V
      intermediary method_5448 Lnet/minecraft/class_3829;method_5448()V
      named clear Lnet/minecraft/util/Clearable;clear()V
    • createScreenHandler

      protected ScreenHandler createScreenHandler​(int syncId, PlayerInventory playerInventory)
      Specified by:
      createScreenHandler in class LockableContainerBlockEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lcfl;a(ILbhk;)Lbjr;
      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;