Class BrewingStandBlockEntity
- All Implemented Interfaces:
Iterable<ItemStack>,Inventory,SidedInventory,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,Nameable
- Mappings:
Namespace Name named net/minecraft/block/entity/BrewingStandBlockEntityintermediary net/minecraft/class_2589official dys
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.inventory.Inventory
Inventory.Iterator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[]static final int(package private) intprivate static final shortprivate static final byte(package private) intstatic final intprivate static final intprivate static final intprivate DefaultedList<ItemStack> private Itemstatic final intstatic final intprotected final PropertyDelegateprivate static final int[]private boolean[]private static final int[]Fields 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 TypeMethodDescriptionprivate static booleancanCraft(BrewingRecipeRegistry brewingRecipeRegistry, DefaultedList<ItemStack> slots) 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.private static voidcraft(World world, BlockPos pos, DefaultedList<ItemStack> slots) 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> private boolean[]booleanReturns whetherstackis valid for theslot.protected voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Reads data fromnbt.protected voidsetHeldStacks(DefaultedList<ItemStack> inventory) intsize()Returns the size of the inventory.static voidtick(World world, BlockPos pos, BlockState state, BrewingStandBlockEntity blockEntity) protected voidwriteNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) 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, removeStack, setStackMethods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onBlockReplaced, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, setCachedState, setComponents, setWorld, supports, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, 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, iterator, markDirty, onClose, onOpen, removeStack, removeStack, setStackMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.minecraft.util.Nameable
hasCustomName
-
Field Details
-
INPUT_SLOT_INDEX
private static final int INPUT_SLOT_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named INPUT_SLOT_INDEXLnet/minecraft/block/entity/BrewingStandBlockEntity;INPUT_SLOT_INDEX:Iintermediary field_31328Lnet/minecraft/class_2589;field_31328:Iofficial gLdys;g:I
-
FUEL_SLOT_INDEX
private static final int FUEL_SLOT_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named FUEL_SLOT_INDEXLnet/minecraft/block/entity/BrewingStandBlockEntity;FUEL_SLOT_INDEX:Iintermediary field_31329Lnet/minecraft/class_2589;field_31329:Iofficial hLdys;h:I
-
TOP_SLOTS
private static final int[] TOP_SLOTS- Mappings:
Namespace Name Mixin selector named TOP_SLOTSLnet/minecraft/block/entity/BrewingStandBlockEntity;TOP_SLOTS:[Iintermediary field_11886Lnet/minecraft/class_2589;field_11886:[Iofficial iLdys;i:[I
-
BOTTOM_SLOTS
private static final int[] BOTTOM_SLOTS- Mappings:
Namespace Name Mixin selector named BOTTOM_SLOTSLnet/minecraft/block/entity/BrewingStandBlockEntity;BOTTOM_SLOTS:[Iintermediary field_11879Lnet/minecraft/class_2589;field_11879:[Iofficial jLdys;j:[I
-
SIDE_SLOTS
private static final int[] SIDE_SLOTS- Mappings:
Namespace Name Mixin selector named SIDE_SLOTSLnet/minecraft/block/entity/BrewingStandBlockEntity;SIDE_SLOTS:[Iintermediary field_11880Lnet/minecraft/class_2589;field_11880:[Iofficial kLdys;k:[I
-
MAX_FUEL_USES
public static final int MAX_FUEL_USES- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_FUEL_USESLnet/minecraft/block/entity/BrewingStandBlockEntity;MAX_FUEL_USES:Iintermediary field_31324Lnet/minecraft/class_2589;field_31324:Iofficial bLdys;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_INDEXLnet/minecraft/block/entity/BrewingStandBlockEntity;BREW_TIME_PROPERTY_INDEX:Iintermediary field_31325Lnet/minecraft/class_2589;field_31325:Iofficial cLdys;c:I
-
FUEL_PROPERTY_INDEX
public static final int FUEL_PROPERTY_INDEX- See Also:
- Mappings:
Namespace Name Mixin selector named FUEL_PROPERTY_INDEXLnet/minecraft/block/entity/BrewingStandBlockEntity;FUEL_PROPERTY_INDEX:Iintermediary field_31326Lnet/minecraft/class_2589;field_31326:Iofficial dLdys;d:I
-
PROPERTY_COUNT
public static final int PROPERTY_COUNT- See Also:
- Mappings:
Namespace Name Mixin selector named PROPERTY_COUNTLnet/minecraft/block/entity/BrewingStandBlockEntity;PROPERTY_COUNT:Iintermediary field_31327Lnet/minecraft/class_2589;field_31327:Iofficial eLdys;e:I
-
DEFAULT_BREW_TIME
private static final short DEFAULT_BREW_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_BREW_TIMELnet/minecraft/block/entity/BrewingStandBlockEntity;DEFAULT_BREW_TIME:Sintermediary field_57769Lnet/minecraft/class_2589;field_57769:Sofficial lLdys;l:S
-
DEFAULT_FUEL
private static final byte DEFAULT_FUEL- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_FUELLnet/minecraft/block/entity/BrewingStandBlockEntity;DEFAULT_FUEL:Bintermediary field_57770Lnet/minecraft/class_2589;field_57770:Bofficial mLdys;m:B
-
inventory
- Mappings:
Namespace Name Mixin selector named inventoryLnet/minecraft/block/entity/BrewingStandBlockEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;intermediary field_11882Lnet/minecraft/class_2589;field_11882:Lnet/minecraft/class_2371;official qLdys;q:Ljp;
-
brewTime
int brewTime- Mappings:
Namespace Name Mixin selector named brewTimeLnet/minecraft/block/entity/BrewingStandBlockEntity;brewTime:Iintermediary field_11878Lnet/minecraft/class_2589;field_11878:Iofficial rLdys;r:I
-
slotsEmptyLastTick
private boolean[] slotsEmptyLastTick- Mappings:
Namespace Name Mixin selector named slotsEmptyLastTickLnet/minecraft/block/entity/BrewingStandBlockEntity;slotsEmptyLastTick:[Zintermediary field_11883Lnet/minecraft/class_2589;field_11883:[Zofficial sLdys;s:[Z
-
itemBrewing
- Mappings:
Namespace Name Mixin selector named itemBrewingLnet/minecraft/block/entity/BrewingStandBlockEntity;itemBrewing:Lnet/minecraft/item/Item;intermediary field_11881Lnet/minecraft/class_2589;field_11881:Lnet/minecraft/class_1792;official tLdys;t:Ldag;
-
fuel
int fuel- Mappings:
Namespace Name Mixin selector named fuelLnet/minecraft/block/entity/BrewingStandBlockEntity;fuel:Iintermediary field_11885Lnet/minecraft/class_2589;field_11885:Iofficial uLdys;u:I
-
propertyDelegate
- Mappings:
Namespace Name Mixin selector named propertyDelegateLnet/minecraft/block/entity/BrewingStandBlockEntity;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;intermediary field_17381Lnet/minecraft/class_2589;field_17381:Lnet/minecraft/class_3913;official fLdys;f:Lcwn;
-
-
Constructor Details
-
BrewingStandBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/BrewingStandBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_2589;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Ldys;<init>(Liw;Lebq;)V
-
-
Method Details
-
getContainerName
- Specified by:
getContainerNamein classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector named getContainerNameLnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;intermediary method_17823Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;official jLdyh;j()Lxg;
-
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 named getHeldStacksLnet/minecraft/block/entity/LockableContainerBlockEntity;getHeldStacks()Lnet/minecraft/util/collection/DefaultedList;intermediary method_11282Lnet/minecraft/class_2624;method_11282()Lnet/minecraft/class_2371;official fLdyh;f()Ljp;
-
setHeldStacks
- Specified by:
setHeldStacksin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector named setHeldStacksLnet/minecraft/block/entity/LockableContainerBlockEntity;setHeldStacks(Lnet/minecraft/util/collection/DefaultedList;)Vintermediary method_11281Lnet/minecraft/class_2624;method_11281(Lnet/minecraft/class_2371;)Vofficial aLdyh;a(Ljp;)V
-
tick
public static void tick(World world, BlockPos pos, BlockState state, BrewingStandBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/block/entity/BrewingStandBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BrewingStandBlockEntity;)Vintermediary method_31665Lnet/minecraft/class_2589;method_31665(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2589;)Vofficial aLdys;a(Ldkj;Liw;Lebq;Ldys;)V
-
getSlotsEmpty
private boolean[] getSlotsEmpty()- Mappings:
Namespace Name Mixin selector named getSlotsEmptyLnet/minecraft/block/entity/BrewingStandBlockEntity;getSlotsEmpty()[Zintermediary method_11028Lnet/minecraft/class_2589;method_11028()[Zofficial kLdys;k()[Z
-
canCraft
private static boolean canCraft(BrewingRecipeRegistry brewingRecipeRegistry, DefaultedList<ItemStack> slots) - Mappings:
Namespace Name Mixin selector named canCraftLnet/minecraft/block/entity/BrewingStandBlockEntity;canCraft(Lnet/minecraft/recipe/BrewingRecipeRegistry;Lnet/minecraft/util/collection/DefaultedList;)Zintermediary method_11027Lnet/minecraft/class_2589;method_11027(Lnet/minecraft/class_1845;Lnet/minecraft/class_2371;)Zofficial aLdys;a(Ldcf;Ljp;)Z
-
craft
- Mappings:
Namespace Name Mixin selector named craftLnet/minecraft/block/entity/BrewingStandBlockEntity;craft(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/collection/DefaultedList;)Vintermediary method_11029Lnet/minecraft/class_2589;method_11029(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2371;)Vofficial aLdys;a(Ldkj;Liw;Ljp;)V
-
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 named readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial aLdyo;a(Lua;Lji$a;)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 named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial bLdyo;b(Lua;Lji$a;)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 named isValidLnet/minecraft/inventory/Inventory;isValid(ILnet/minecraft/item/ItemStack;)Zintermediary method_5437Lnet/minecraft/class_1263;method_5437(ILnet/minecraft/class_1799;)Zofficial bLbuv;b(ILdak;)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 named getAvailableSlotsLnet/minecraft/inventory/SidedInventory;getAvailableSlots(Lnet/minecraft/util/math/Direction;)[Iintermediary method_5494Lnet/minecraft/class_1278;method_5494(Lnet/minecraft/class_2350;)[Iofficial aLbvm;a(Ljc;)[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 named canInsertLnet/minecraft/inventory/SidedInventory;canInsert(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Zintermediary method_5492Lnet/minecraft/class_1278;method_5492(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Zofficial aLbvm;a(ILdak;Ljc;)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 named canExtractLnet/minecraft/inventory/SidedInventory;canExtract(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Zintermediary method_5493Lnet/minecraft/class_1278;method_5493(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Zofficial bLbvm;b(ILdak;Ljc;)Z
-
createScreenHandler
- Specified by:
createScreenHandlerin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector named createScreenHandlerLnet/minecraft/block/entity/LockableContainerBlockEntity;createScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;intermediary method_5465Lnet/minecraft/class_2624;method_5465(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;official aLdyh;a(ILcsh;)Lcwb;
-