类 BrewingStandBlockEntity
- java.lang.Object
-
- net.minecraft.block.entity.BlockEntity
-
- net.minecraft.block.entity.LockableContainerBlockEntity
-
- net.minecraft.block.entity.BrewingStandBlockEntity
-
- 所有已实现的接口:
Inventory,SidedInventory,NamedScreenHandlerFactory,ScreenHandlerFactory,Clearable,Nameable
public class BrewingStandBlockEntity extends LockableContainerBlockEntity implements SidedInventory
- Mappings:
Namespace Name official chsintermediary net/minecraft/class_2589named net/minecraft/block/entity/BrewingStandBlockEntity
-
-
字段概要
字段 修饰符和类型 字段 说明 private static int[]BOTTOM_SLOTSprivate intbrewTimestatic intfield_31324static intfield_31325static intfield_31326static intfield_31327private static intfield_31328private static intfield_31329private intfuelprivate DefaultedList<ItemStack>inventoryprivate ItemitemBrewingprotected PropertyDelegatepropertyDelegateprivate static int[]SIDE_SLOTSprivate boolean[]slotsEmptyLastTickprivate static int[]TOP_SLOTS-
从类继承的字段 net.minecraft.block.entity.BlockEntity
pos, removed, world
-
从接口继承的字段 net.minecraft.inventory.Inventory
MAX_COUNT_PER_STACK
-
-
构造器概要
构造器 构造器 说明 BrewingStandBlockEntity(BlockPos pos, BlockState state)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private 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.booleancanInsert(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.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 TextgetContainerName()private boolean[]getSlotsEmpty()ItemStackgetStack(int slot)Fetches the stack currently stored at the given slot.booleanisEmpty()booleanisValid(int slot, ItemStack stack)Returns whether the given stack is a valid for the indicated slot position.voidreadNbt(CompoundTag nbt)ItemStackremoveStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackremoveStack(int slot, int amount)Removes a specific number of items from the given slot.voidsetStack(int slot, ItemStack stack)intsize()static voidtick(World world, BlockPos pos, BlockState state, BrewingStandBlockEntity blockEntity)CompoundTagwriteNbt(CompoundTag nbt)-
从类继承的方法 net.minecraft.block.entity.LockableContainerBlockEntity
checkUnlocked, checkUnlocked, createMenu, getCustomName, getDisplayName, getName, setCustomName
-
从类继承的方法 net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld, toInitialChunkDataNbt, toUpdatePacket
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.inventory.Inventory
containsAny, count, getMaxCountPerStack, markDirty, onClose, onOpen
-
从接口继承的方法 net.minecraft.util.Nameable
hasCustomName
-
-
-
-
字段详细资料
-
field_31328
private static final int field_31328
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official gLchs;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
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official hLchs;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 iLchs;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 jLchs;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 kLchs;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
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLchs;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
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLchs;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
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official dLchs;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
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official eLchs;e:Iintermediary field_31327Lnet/minecraft/class_2589;field_31327:Inamed field_31327Lnet/minecraft/block/entity/BrewingStandBlockEntity;field_31327:I
-
inventory
private DefaultedList<ItemStack> inventory
- Mappings:
Namespace Name Mixin selector official lLchs;l:Lgn;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
private int brewTime
- Mappings:
Namespace Name Mixin selector official mLchs;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 qLchs;q:[Zintermediary field_11883Lnet/minecraft/class_2589;field_11883:[Znamed slotsEmptyLastTickLnet/minecraft/block/entity/BrewingStandBlockEntity;slotsEmptyLastTick:[Z
-
itemBrewing
private Item itemBrewing
- Mappings:
Namespace Name Mixin selector official rLchs;r:Lbpn;intermediary field_11881Lnet/minecraft/class_2589;field_11881:Lnet/minecraft/class_1792;named itemBrewingLnet/minecraft/block/entity/BrewingStandBlockEntity;itemBrewing:Lnet/minecraft/item/Item;
-
fuel
private int fuel
- Mappings:
Namespace Name Mixin selector official sLchs;s:Iintermediary field_11885Lnet/minecraft/class_2589;field_11885:Inamed fuelLnet/minecraft/block/entity/BrewingStandBlockEntity;fuel:I
-
propertyDelegate
protected final PropertyDelegate propertyDelegate
- Mappings:
Namespace Name Mixin selector official fLchs;f:Lblv;intermediary field_17381Lnet/minecraft/class_2589;field_17381:Lnet/minecraft/class_3913;named propertyDelegateLnet/minecraft/block/entity/BrewingStandBlockEntity;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
-
-
构造器详细资料
-
BrewingStandBlockEntity
public BrewingStandBlockEntity(BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official <init>Lchs;<init>(Lgb;Lcjr;)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
-
-
方法详细资料
-
getContainerName
protected Text getContainerName()
- 指定者:
getContainerName在类中LockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official gLchj;g()Lon;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 aLchs;a(Lbvr;Lgb;Lcjr;Lchs;)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 fLchs;f()[Zintermediary method_11028Lnet/minecraft/class_2589;method_11028()[Znamed getSlotsEmptyLnet/minecraft/block/entity/BrewingStandBlockEntity;getSlotsEmpty()[Z
-
canCraft
private static boolean canCraft(DefaultedList<ItemStack> slots)
- Mappings:
Namespace Name Mixin selector official aLchs;a(Lgn;)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
private static void craft(World world, BlockPos pos, DefaultedList<ItemStack> slots)
- Mappings:
Namespace Name Mixin selector official aLchs;a(Lbvr;Lgb;Lgn;)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
public void readNbt(CompoundTag nbt)
- 覆盖:
readNbt在类中LockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLchp;a(Lmv;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
writeNbt
public CompoundTag writeNbt(CompoundTag nbt)
- 覆盖:
writeNbt在类中LockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official bLchp;b(Lmv;)Lmv;intermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(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 seeItemStack.EMPTY.
-
removeStack
public ItemStack removeStack(int slot, int amount)
Removes a specific number of items from the given slot.- 指定者:
removeStack在接口中Inventory- 返回:
- the removed items as a stack
- Mappings:
Namespace Name Mixin selector official aLaqz;a(II)Lbpr;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
public ItemStack removeStack(int slot)
Removes the stack currently stored at the indicated slot.- 指定者:
removeStack在接口中Inventory- 返回:
- the stack previously stored at the indicated slot.
- Mappings:
Namespace Name Mixin selector official bLaqz;b(I)Lbpr;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
public void setStack(int slot, ItemStack stack)
-
canPlayerUse
public boolean canPlayerUse(PlayerEntity player)
- 指定者:
canPlayerUse在接口中Inventory- Mappings:
Namespace Name Mixin selector official aLaqz;a(Lbjf;)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
public boolean isValid(int slot, ItemStack stack)Returns whether the given stack is a valid for the indicated slot position.
-
getAvailableSlots
public int[] getAvailableSlots(Direction side)
Gets the available slot positions that are reachable from a given side.- 指定者:
getAvailableSlots在接口中SidedInventory- Mappings:
Namespace Name Mixin selector official aLarp;a(Lgg;)[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
public boolean canInsert(int slot, ItemStack stack, @Nullable @Nullable Direction dir)Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.- 指定者:
canInsert在接口中SidedInventory- Mappings:
Namespace Name Mixin selector official aLarp;a(ILbpr;Lgg;)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
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.- 指定者:
canExtract在接口中SidedInventory- Mappings:
Namespace Name Mixin selector official bLarp;b(ILbpr;Lgg;)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
protected ScreenHandler createScreenHandler(int syncId, PlayerInventory playerInventory)
- 指定者:
createScreenHandler在类中LockableContainerBlockEntity- Mappings:
Namespace Name Mixin selector official aLchj;a(ILbje;)Lbll;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;
-
-