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 cyb$cintermediary net/minecraft/class_3962$class_3964named net/minecraft/block/ComposterBlock$FullComposterInventory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final BlockPosprivate final BlockStateprivate final WorldAccessFields inherited from interface net.minecraft.inventory.Inventory
field_42619, MAX_COUNT_PER_STACK -
Constructor Summary
ConstructorsConstructorDescriptionFullComposterInventory(BlockState state, WorldAccess world, BlockPos pos, ItemStack outputItem) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanExtract(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.int[]getAvailableSlots(Direction side) Returns 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.voidMarks the inventory as modified.Methods inherited from class net.minecraft.inventory.SimpleInventory
addListener, addStack, canInsert, canPlayerUse, clear, clearToList, getHeldStacks, getStack, isEmpty, provideRecipeInputs, readNbtList, removeItem, removeListener, removeStack, removeStack, setStack, size, toNbtList, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, canTransferTo, containsAny, containsAny, count, getStack, isEmpty, isValid, onClose, onOpen, removeStack, removeStack, setStack, size
-
Field Details
-
state
- Mappings:
Namespace Name Mixin selector official cLcyb$c;c:Ldjh;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
- Mappings:
Namespace Name Mixin selector official dLcyb$c;d:Lctq;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
- Mappings:
Namespace Name Mixin selector official eLcyb$c;e:Lhx;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 fLcyb$c;f:Zintermediary field_17576Lnet/minecraft/class_3962$class_3964;field_17576:Znamed dirtyLnet/minecraft/block/ComposterBlock$FullComposterInventory;dirty:Z
-
-
Constructor Details
-
FullComposterInventory
public FullComposterInventory(BlockState state, WorldAccess world, BlockPos pos, ItemStack outputItem) - Mappings:
Namespace Name Mixin selector official <init>Lcyb$c;<init>(Ldjh;Lctq;Lhx;Lcmy;)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
-
-
Method Details
-
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.
- Specified by:
getMaxCountPerStackin interfaceInventory- Returns:
- the maximum number of items a stack can contain when placed inside this inventory
- Mappings:
Namespace Name Mixin selector official ak_Lbju;ak_()Iintermediary method_5444Lnet/minecraft/class_1263;method_5444()Inamed getMaxCountPerStackLnet/minecraft/inventory/Inventory;getMaxCountPerStack()I
-
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 official aLbkm;a(Lic;)[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
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 official aLbkm;a(ILcmy;Lic;)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
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 official bLbkm;b(ILcmy;Lic;)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()Marks the inventory as modified. Implementations should call this method every time the inventory is changed in any way.- Specified by:
markDirtyin interfaceInventory- Overrides:
markDirtyin classSimpleInventory- See Also:
- Mappings:
Namespace Name Mixin selector official eLbju;e()Vintermediary method_5431Lnet/minecraft/class_1263;method_5431()Vnamed markDirtyLnet/minecraft/inventory/Inventory;markDirty()V
-