类 ComposterBlock.FullComposterInventory
- java.lang.Object
-
- net.minecraft.inventory.SimpleInventory
-
- net.minecraft.block.ComposterBlock.FullComposterInventory
-
- 所有已实现的接口:
Inventory,SidedInventory,RecipeInputProvider,Clearable
- 封闭类:
- ComposterBlock
static class ComposterBlock.FullComposterInventory extends SimpleInventory implements SidedInventory
- Mappings:
Namespace Name official bzu$cintermediary net/minecraft/class_3962$class_3964named net/minecraft/block/ComposterBlock$FullComposterInventory
-
-
字段概要
字段 修饰符和类型 字段 说明 private booleandirtyprivate BlockPosposprivate BlockStatestateprivate WorldAccessworld-
从接口继承的字段 net.minecraft.inventory.Inventory
MAX_COUNT_PER_STACK
-
-
构造器概要
构造器 构造器 说明 FullComposterInventory(BlockState state, WorldAccess world, BlockPos pos, ItemStack outputItem)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.int[]getAvailableSlots(Direction side)Gets the available slot positions that are reachable from a given side.intgetMaxCountPerStack()Returns the maximum number of items a stack can contain when placed inside this inventory.voidmarkDirty()-
从类继承的方法 net.minecraft.inventory.SimpleInventory
addListener, addStack, canInsert, canPlayerUse, clear, clearToList, getStack, isEmpty, provideRecipeInputs, readNbtList, removeItem, removeListener, removeStack, removeStack, setStack, size, toNbtList, toString
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 net.minecraft.inventory.Inventory
canPlayerUse, containsAny, count, getStack, isEmpty, isValid, onClose, onOpen, removeStack, removeStack, setStack, size
-
-
-
-
字段详细资料
-
state
private final BlockState state
- Mappings:
Namespace Name Mixin selector official bLbzu$c;b:Lcjr;intermediary field_17573Lnet/minecraft/class_3962$class_3964;field_17573:Lnet/minecraft/class_2680;named stateLnet/minecraft/block/ComposterBlock$FullComposterInventory;state:Lnet/minecraft/block/BlockState;
-
world
private final WorldAccess world
- Mappings:
Namespace Name Mixin selector official cLbzu$c;c:Lbvs;intermediary field_17574Lnet/minecraft/class_3962$class_3964;field_17574:Lnet/minecraft/class_1936;named worldLnet/minecraft/block/ComposterBlock$FullComposterInventory;world:Lnet/minecraft/world/WorldAccess;
-
pos
private final BlockPos pos
- Mappings:
Namespace Name Mixin selector official dLbzu$c;d:Lgb;intermediary field_17575Lnet/minecraft/class_3962$class_3964;field_17575:Lnet/minecraft/class_2338;named posLnet/minecraft/block/ComposterBlock$FullComposterInventory;pos:Lnet/minecraft/util/math/BlockPos;
-
dirty
private boolean dirty
- Mappings:
Namespace Name Mixin selector official eLbzu$c;e:Zintermediary field_17576Lnet/minecraft/class_3962$class_3964;field_17576:Znamed dirtyLnet/minecraft/block/ComposterBlock$FullComposterInventory;dirty:Z
-
-
构造器详细资料
-
FullComposterInventory
public FullComposterInventory(BlockState state, WorldAccess world, BlockPos pos, ItemStack outputItem)
- Mappings:
Namespace Name Mixin selector official <init>Lbzu$c;<init>(Lcjr;Lbvs;Lgb;Lbpr;)Vintermediary <init>Lnet/minecraft/class_3962$class_3964;<init>(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)Vnamed <init>Lnet/minecraft/block/ComposterBlock$FullComposterInventory;<init>(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)V
-
-
方法详细资料
-
getMaxCountPerStack
public int getMaxCountPerStack()
Returns the maximum number of items a stack can contain when placed inside this inventory. No slots may have more than this number of items. It is effectively the stacking limit for this inventory's slots.- 指定者:
getMaxCountPerStack在接口中Inventory- 返回:
- the max
countof item stacks in this inventory - Mappings:
Namespace Name Mixin selector official X_Laqz;X_()Iintermediary method_5444Lnet/minecraft/class_1263;method_5444()Inamed getMaxCountPerStackLnet/minecraft/inventory/Inventory;getMaxCountPerStack()I
-
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
-
markDirty
public void markDirty()
- 指定者:
markDirty在接口中Inventory- 覆盖:
markDirty在类中SimpleInventory- Mappings:
Namespace Name Mixin selector official Z_Laqz;Z_()Vintermediary method_5431Lnet/minecraft/class_1263;method_5431()Vnamed markDirtyLnet/minecraft/inventory/Inventory;markDirty()V
-
-