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
named net/minecraft/block/ComposterBlock$FullComposterInventory
intermediary net/minecraft/class_3962$class_3964
official dgm$c
  • Field Details

    • state

      private final BlockState state
      Mappings:
      Namespace Name Mixin selector
      named state Lnet/minecraft/block/ComposterBlock$FullComposterInventory;state:Lnet/minecraft/block/BlockState;
      intermediary field_17573 Lnet/minecraft/class_3962$class_3964;field_17573:Lnet/minecraft/class_2680;
      official b Ldgm$c;b:Ldse;
    • world

      private final WorldAccess world
      Mappings:
      Namespace Name Mixin selector
      named world Lnet/minecraft/block/ComposterBlock$FullComposterInventory;world:Lnet/minecraft/world/WorldAccess;
      intermediary field_17574 Lnet/minecraft/class_3962$class_3964;field_17574:Lnet/minecraft/class_1936;
      official c Ldgm$c;c:Ldcb;
    • pos

      private final BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      named pos Lnet/minecraft/block/ComposterBlock$FullComposterInventory;pos:Lnet/minecraft/util/math/BlockPos;
      intermediary field_17575 Lnet/minecraft/class_3962$class_3964;field_17575:Lnet/minecraft/class_2338;
      official d Ldgm$c;d:Liz;
    • dirty

      private boolean dirty
      Mappings:
      Namespace Name Mixin selector
      named dirty Lnet/minecraft/block/ComposterBlock$FullComposterInventory;dirty:Z
      intermediary field_17576 Lnet/minecraft/class_3962$class_3964;field_17576:Z
      official e Ldgm$c;e:Z
  • Constructor Details

    • FullComposterInventory

      public FullComposterInventory(BlockState state, WorldAccess world, BlockPos pos, ItemStack outputItem)
      Mappings:
      Namespace Name Mixin selector
      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
      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
      official <init> Ldgm$c;<init>(Ldse;Ldcb;Liz;Lcur;)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:
      getMaxCountPerStack in interface Inventory
      Returns:
      the maximum number of items a stack can contain when placed inside this inventory
      Mappings:
      Namespace Name Mixin selector
      named getMaxCountPerStack Lnet/minecraft/inventory/Inventory;getMaxCountPerStack()I
      intermediary method_5444 Lnet/minecraft/class_1263;method_5444()I
      official ah_ Lbqp;ah_()I
    • getAvailableSlots

      public int[] getAvailableSlots(Direction side)
      Returns the available slot positions that are reachable from a given side.
      Specified by:
      getAvailableSlots in interface SidedInventory
      Returns:
      the available slot positions that are reachable from a given side
      Mappings:
      Namespace Name Mixin selector
      named getAvailableSlots Lnet/minecraft/inventory/SidedInventory;getAvailableSlots(Lnet/minecraft/util/math/Direction;)[I
      intermediary method_5494 Lnet/minecraft/class_1278;method_5494(Lnet/minecraft/class_2350;)[I
      official a Lbri;a(Lje;)[I
    • canInsert

      public boolean canInsert(int slot, ItemStack stack, @Nullable @Nullable Direction dir)
      Returns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.
      Specified by:
      canInsert in interface SidedInventory
      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
      named canInsert Lnet/minecraft/inventory/SidedInventory;canInsert(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Z
      intermediary method_5492 Lnet/minecraft/class_1278;method_5492(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Z
      official a Lbri;a(ILcur;Lje;)Z
    • canExtract

      public boolean canExtract(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.
      Specified by:
      canExtract in interface SidedInventory
      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
      named canExtract Lnet/minecraft/inventory/SidedInventory;canExtract(ILnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;)Z
      intermediary method_5493 Lnet/minecraft/class_1278;method_5493(ILnet/minecraft/class_1799;Lnet/minecraft/class_2350;)Z
      official b Lbri;b(ILcur;Lje;)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:
      markDirty in interface Inventory
      Overrides:
      markDirty in class SimpleInventory
      See Also:
      API Note:
      Implementations should mark the inventory for synchronization or saving in this method. Since this is called frequently, it is not recommended to synchronize or save the inventory directly in this method. If this inventory is implemented in a block entity, then it should always call super.markDirty(); to ensure the block entity gets saved.
      Mappings:
      Namespace Name Mixin selector
      named markDirty Lnet/minecraft/inventory/Inventory;markDirty()V
      intermediary method_5431 Lnet/minecraft/class_1263;method_5431()V
      official e Lbqp;e()V