Package net.minecraft.block
Class ComposterBlock.FullComposterInventory
java.lang.Object
net.minecraft.inventory.SimpleInventory
net.minecraft.block.ComposterBlock.FullComposterInventory
- All Implemented Interfaces:
- Inventory,- SidedInventory,- RecipeInputProvider,- Clearable
- Enclosing class:
- ComposterBlock
private static class ComposterBlock.FullComposterInventory
extends SimpleInventory
implements SidedInventory
- Mappings:
- Namespace - Name - official - cqw$c- intermediary - net/minecraft/class_3962$class_3964- named - net/minecraft/block/ComposterBlock$FullComposterInventory
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate booleanprivate final BlockPosprivate final BlockStateprivate final WorldAccessFields inherited from interface net.minecraft.inventory.Inventoryfield_42619, MAX_COUNT_PER_STACK
- 
Constructor SummaryConstructorsConstructorDescriptionFullComposterInventory(BlockState state, WorldAccess world, BlockPos pos, ItemStack outputItem) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanExtract(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.int[]getAvailableSlots(Direction side) Gets the available slot positions that are reachable from a given side.intReturns the maximum number of items a stack can contain when placed inside this inventory.voidMethods inherited from class net.minecraft.inventory.SimpleInventoryaddListener, addStack, canInsert, canPlayerUse, clear, clearToList, getStack, isEmpty, provideRecipeInputs, readNbtList, removeItem, removeListener, removeStack, removeStack, setStack, size, toNbtList, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.inventory.InventorycanPlayerUse, canTransferTo, containsAny, containsAny, count, getStack, isEmpty, isValid, onClose, onOpen, removeStack, removeStack, setStack, size
- 
Field Details- 
state- Mappings:
- Namespace - Name - Mixin selector - official - c- Lcqw$c;c:Ldcb;- intermediary - field_17573- Lnet/minecraft/class_3962$class_3964;field_17573:Lnet/minecraft/class_2680;- named - state- Lnet/minecraft/block/ComposterBlock$FullComposterInventory;state:Lnet/minecraft/block/BlockState;
 
- 
world- Mappings:
- Namespace - Name - Mixin selector - official - d- Lcqw$c;d:Lcmn;- intermediary - field_17574- Lnet/minecraft/class_3962$class_3964;field_17574:Lnet/minecraft/class_1936;- named - world- Lnet/minecraft/block/ComposterBlock$FullComposterInventory;world:Lnet/minecraft/world/WorldAccess;
 
- 
pos- Mappings:
- Namespace - Name - Mixin selector - official - e- Lcqw$c;e:Lgu;- intermediary - field_17575- Lnet/minecraft/class_3962$class_3964;field_17575:Lnet/minecraft/class_2338;- named - pos- Lnet/minecraft/block/ComposterBlock$FullComposterInventory;pos:Lnet/minecraft/util/math/BlockPos;
 
- 
dirtyprivate boolean dirty- Mappings:
- Namespace - Name - Mixin selector - official - f- Lcqw$c;f:Z- intermediary - field_17576- Lnet/minecraft/class_3962$class_3964;field_17576:Z- named - dirty- Lnet/minecraft/block/ComposterBlock$FullComposterInventory;dirty:Z
 
 
- 
- 
Constructor Details- 
FullComposterInventorypublic FullComposterInventory(BlockState state, WorldAccess world, BlockPos pos, ItemStack outputItem) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lcqw$c;<init>(Ldcb;Lcmn;Lgu;Lcfz;)V- intermediary - <init>- Lnet/minecraft/class_3962$class_3964;<init>(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)V- named - <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
 
 
- 
- 
Method Details- 
getMaxCountPerStackpublic 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.- Specified by:
- getMaxCountPerStackin interface- Inventory
- Returns:
- the max countof item stacks in this inventory
- Mappings:
- Namespace - Name - Mixin selector - official - ac_- Lbdq;ac_()I- intermediary - method_5444- Lnet/minecraft/class_1263;method_5444()I- named - getMaxCountPerStack- Lnet/minecraft/inventory/Inventory;getMaxCountPerStack()I
 
- 
getAvailableSlotsGets the available slot positions that are reachable from a given side.- Specified by:
- getAvailableSlotsin interface- SidedInventory
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbeg;a(Lha;)[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
 
- 
canInsertDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.- Specified by:
- canInsertin interface- SidedInventory
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbeg;a(ILcfz;Lha;)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
 
- 
canExtractDetermines whether the given stack can be removed from this inventory at the specified slot position from the given direction.- Specified by:
- canExtractin interface- SidedInventory
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbeg;b(ILcfz;Lha;)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
 
- 
markDirtypublic void markDirty()- Specified by:
- markDirtyin interface- Inventory
- Overrides:
- markDirtyin class- SimpleInventory
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbdq;e()V- intermediary - method_5431- Lnet/minecraft/class_1263;method_5431()V- named - markDirty- Lnet/minecraft/inventory/Inventory;markDirty()V
 
 
-