Package net.minecraft.block.entity
Class BrewingStandBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.LockableContainerBlockEntity
net.minecraft.block.entity.BrewingStandBlockEntity
- All Implemented Interfaces:
Inventory,SidedInventory,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,Nameable
- Mappings:
Namespace Name official csointermediary net/minecraft/class_2589named net/minecraft/block/entity/BrewingStandBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[](package private) intstatic final intstatic final intstatic final intstatic final intprivate static final intprivate static final int(package private) intprivate DefaultedList<ItemStack>private Itemprotected 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
MAX_COUNT_PER_STACK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleancanCraft(DefaultedList<ItemStack> slots) booleancanExtract(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.booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleancanPlayerUse(PlayerEntity player) voidclear()private static voidcraft(World world, BlockPos pos, DefaultedList<ItemStack> slots) protected ScreenHandlercreateScreenHandler(int syncId, PlayerInventory playerInventory) int[]getAvailableSlots(Direction side) Gets the available slot positions that are reachable from a given side.protected Textprivate boolean[]getStack(int slot) Fetches the stack currently stored at the given slot.booleanisEmpty()booleanReturns whether the given stack is a valid for the indicated slot position.voidreadNbt(NbtCompound nbt) removeStack(int slot) Removes the stack currently stored at the indicated slot.removeStack(int slot, int amount) Removes a specific number of items from the given slot.voidintsize()static voidtick(World world, BlockPos pos, BlockState state, BrewingStandBlockEntity blockEntity) protected voidwriteNbt(NbtCompound nbt) Methods inherited from class net.minecraft.block.entity.LockableContainerBlockEntity
checkUnlocked, checkUnlocked, createMenu, getCustomName, getDisplayName, getName, setCustomNameMethods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, 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
containsAny, containsAny, count, getMaxCountPerStack, markDirty, onClose, onOpenMethods inherited from interface net.minecraft.util.Nameable
hasCustomName
-
Field Details
-
field_31328
private static final int field_31328- See Also:
- Mappings:
Namespace Name Mixin selector official gLcso;g:Iintermediary field_31328Lnet/minecraft/class_2589;field_31328:Inamed field_31328Lnet/minecraft/block/entity/BrewingStandBlockEntity;field_31328:I
-
field_31329
private static final int field_31329- See Also:
- Mappings:
Namespace Name Mixin selector official hLcso;h:Iintermediary field_31329Lnet/minecraft/class_2589;field_31329:Inamed field_31329Lnet/minecraft/block/entity/BrewingStandBlockEntity;field_31329:I
-
TOP_SLOTS
private static final int[] TOP_SLOTS- Mappings:
Namespace Name Mixin selector official iLcso;i:[Iintermediary field_11886Lnet/minecraft/class_2589;field_11886:[Inamed TOP_SLOTSLnet/minecraft/block/entity/BrewingStandBlockEntity;TOP_SLOTS:[I
-
BOTTOM_SLOTS
private static final int[] BOTTOM_SLOTS- Mappings:
Namespace Name Mixin selector official jLcso;j:[Iintermediary field_11879Lnet/minecraft/class_2589;field_11879:[Inamed BOTTOM_SLOTSLnet/minecraft/block/entity/BrewingStandBlockEntity;BOTTOM_SLOTS:[I
-
SIDE_SLOTS
private static final int[] SIDE_SLOTS- Mappings:
Namespace Name Mixin selector official kLcso;k:[Iintermediary field_11880Lnet/minecraft/class_2589;field_11880:[Inamed SIDE_SLOTSLnet/minecraft/block/entity/BrewingStandBlockEntity;SIDE_SLOTS:[I
-
field_31324
public static final int field_31324- See Also:
- Mappings:
Namespace Name Mixin selector official bLcso;b:Iintermediary field_31324Lnet/minecraft/class_2589;field_31324:Inamed field_31324Lnet/minecraft/block/entity/BrewingStandBlockEntity;field_31324:I
-
field_31325
public static final int field_31325- See Also:
- Mappings:
Namespace Name Mixin selector official cLcso;c:Iintermediary field_31325Lnet/minecraft/class_2589;field_31325:Inamed field_31325Lnet/minecraft/block/entity/BrewingStandBlockEntity;field_31325:I
-
field_31326
public static final int field_31326- See Also:
- Mappings:
Namespace Name Mixin selector official dLcso;d:Iintermediary field_31326Lnet/minecraft/class_2589;field_31326:Inamed field_31326Lnet/minecraft/block/entity/BrewingStandBlockEntity;field_31326:I
-
field_31327
public static final int field_31327- See Also:
- Mappings:
Namespace Name Mixin selector official eLcso;e:Iintermediary field_31327Lnet/minecraft/class_2589;field_31327:Inamed field_31327Lnet/minecraft/block/entity/BrewingStandBlockEntity;field_31327:I
-
inventory
- Mappings:
Namespace Name Mixin selector official lLcso;l:Lhi;intermediary field_11882Lnet/minecraft/class_2589;field_11882:Lnet/minecraft/class_2371;named inventoryLnet/minecraft/block/entity/BrewingStandBlockEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;
-
brewTime
int brewTime- Mappings:
Namespace Name Mixin selector official mLcso;m:Iintermediary field_11878Lnet/minecraft/class_2589;field_11878:Inamed brewTimeLnet/minecraft/block/entity/BrewingStandBlockEntity;brewTime:I
-
slotsEmptyLastTick
private boolean[] slotsEmptyLastTick- Mappings:
Namespace Name Mixin selector official qLcso;q:[Zintermediary field_11883Lnet/minecraft/class_2589;field_11883:[Znamed slotsEmptyLastTickLnet/minecraft/block/entity/BrewingStandBlockEntity;slotsEmptyLastTick:[Z
-
itemBrewing
- Mappings:
Namespace Name Mixin selector official rLcso;r:Lbzw;intermediary field_11881Lnet/minecraft/class_2589;field_11881:Lnet/minecraft/class_1792;named itemBrewingLnet/minecraft/block/entity/BrewingStandBlockEntity;itemBrewing:Lnet/minecraft/item/Item;
-
fuel
int fuel- Mappings:
Namespace Name Mixin selector official sLcso;s:Iintermediary field_11885Lnet/minecraft/class_2589;field_11885:Inamed fuelLnet/minecraft/block/entity/BrewingStandBlockEntity;fuel:I
-
propertyDelegate
- Mappings:
Namespace Name Mixin selector official fLcso;f:Lbvz;intermediary field_17381Lnet/minecraft/class_2589;field_17381:Lnet/minecraft/class_3913;named propertyDelegateLnet/minecraft/block/entity/BrewingStandBlockEntity;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
-
-
Constructor Details
-
BrewingStandBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcso;<init>(Lgt;Lcur;)Vintermediary <init>Lnet/minecraft/class_2589;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed <init>Lnet/minecraft/block/entity/BrewingStandBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
getContainerName
- Specified by:
getContainerNamein classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official gLcsf;g()Lrm;intermediary method_17823Lnet/minecraft/class_2624;method_17823()Lnet/minecraft/class_2561;named getContainerNameLnet/minecraft/block/entity/LockableContainerBlockEntity;getContainerName()Lnet/minecraft/text/Text;
-
size
public int size() -
isEmpty
public boolean isEmpty() -
tick
public static void tick(World world, BlockPos pos, BlockState state, BrewingStandBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector official aLcso;a(Lcga;Lgt;Lcur;Lcso;)Vintermediary method_31665Lnet/minecraft/class_2589;method_31665(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2589;)Vnamed tickLnet/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 fLcso;f()[Zintermediary method_11028Lnet/minecraft/class_2589;method_11028()[Znamed getSlotsEmptyLnet/minecraft/block/entity/BrewingStandBlockEntity;getSlotsEmpty()[Z
-
canCraft
- Mappings:
Namespace Name Mixin selector official aLcso;a(Lhi;)Zintermediary method_11027Lnet/minecraft/class_2589;method_11027(Lnet/minecraft/class_2371;)Znamed canCraftLnet/minecraft/block/entity/BrewingStandBlockEntity;canCraft(Lnet/minecraft/util/collection/DefaultedList;)Z
-
craft
- Mappings:
Namespace Name Mixin selector official aLcso;a(Lcga;Lgt;Lhi;)Vintermediary method_11029Lnet/minecraft/class_2589;method_11029(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2371;)Vnamed craftLnet/minecraft/block/entity/BrewingStandBlockEntity;craft(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/collection/DefaultedList;)V
-
readNbt
- Overrides:
readNbtin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLcsl;a(Lpj;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeNbt
- Overrides:
writeNbtin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official bLcsl;b(Lpj;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Vnamed writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getStack
Fetches the stack currently stored at the given slot. If the slot is empty, or is outside the bounds of this inventory, returns seeItemStack.EMPTY. -
removeStack
Removes a specific number of items from the given slot.- Specified by:
removeStackin interfaceInventory- Returns:
- the removed items as a stack
- Mappings:
Namespace Name Mixin selector official aLazf;a(II)Lcaa;intermediary method_5434Lnet/minecraft/class_1263;method_5434(II)Lnet/minecraft/class_1799;named removeStackLnet/minecraft/inventory/Inventory;removeStack(II)Lnet/minecraft/item/ItemStack;
-
removeStack
Removes the stack currently stored at the indicated slot.- Specified by:
removeStackin interfaceInventory- Returns:
- the stack previously stored at the indicated slot.
- Mappings:
Namespace Name Mixin selector official bLazf;b(I)Lcaa;intermediary method_5441Lnet/minecraft/class_1263;method_5441(I)Lnet/minecraft/class_1799;named removeStackLnet/minecraft/inventory/Inventory;removeStack(I)Lnet/minecraft/item/ItemStack;
-
setStack
-
canPlayerUse
- Specified by:
canPlayerUsein interfaceInventory- Mappings:
Namespace Name Mixin selector official aLazf;a(Lbtf;)Zintermediary method_5443Lnet/minecraft/class_1263;method_5443(Lnet/minecraft/class_1657;)Znamed canPlayerUseLnet/minecraft/inventory/Inventory;canPlayerUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
isValid
Returns whether the given stack is a valid for the indicated slot position. -
getAvailableSlots
Gets the available slot positions that are reachable from a given side.- Specified by:
getAvailableSlotsin interfaceSidedInventory- Mappings:
Namespace Name Mixin selector official aLazt;a(Lgy;)[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
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.- Specified by:
canInsertin interfaceSidedInventory- Mappings:
Namespace Name Mixin selector official aLazt;a(ILcaa;Lgy;)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
Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.- Specified by:
canExtractin interfaceSidedInventory- Mappings:
Namespace Name Mixin selector official bLazt;b(ILcaa;Lgy;)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
-
clear
public void clear() -
createScreenHandler
- Specified by:
createScreenHandlerin classLockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLcsf;a(ILbte;)Lbvp;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;
-