Class ComposterBlock.ComposterInventory

java.lang.Object
net.minecraft.inventory.SimpleInventory
net.minecraft.block.ComposterBlock.ComposterInventory
All Implemented Interfaces:
Inventory, SidedInventory, RecipeInputProvider, Clearable
Enclosing class:
ComposterBlock

private static class ComposterBlock.ComposterInventory extends SimpleInventory implements SidedInventory
Mappings:
Namespace Name
official ckx$b
intermediary net/minecraft/class_3962$class_3963
named net/minecraft/block/ComposterBlock$ComposterInventory
  • Field Details

    • state

      private final BlockState state
      Mappings:
      Namespace Name Mixin selector
      official b Lckx$b;b:Lcvo;
      intermediary field_17569 Lnet/minecraft/class_3962$class_3963;field_17569:Lnet/minecraft/class_2680;
      named state Lnet/minecraft/block/ComposterBlock$ComposterInventory;state:Lnet/minecraft/block/BlockState;
    • world

      private final WorldAccess world
      Mappings:
      Namespace Name Mixin selector
      official c Lckx$b;c:Lcgy;
      intermediary field_17570 Lnet/minecraft/class_3962$class_3963;field_17570:Lnet/minecraft/class_1936;
      named world Lnet/minecraft/block/ComposterBlock$ComposterInventory;world:Lnet/minecraft/world/WorldAccess;
    • pos

      private final BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official d Lckx$b;d:Lgt;
      intermediary field_17571 Lnet/minecraft/class_3962$class_3963;field_17571:Lnet/minecraft/class_2338;
      named pos Lnet/minecraft/block/ComposterBlock$ComposterInventory;pos:Lnet/minecraft/util/math/BlockPos;
    • dirty

      private boolean dirty
      Mappings:
      Namespace Name Mixin selector
      official e Lckx$b;e:Z
      intermediary field_17572 Lnet/minecraft/class_3962$class_3963;field_17572:Z
      named dirty Lnet/minecraft/block/ComposterBlock$ComposterInventory;dirty:Z
  • Constructor Details

    • ComposterInventory

      public ComposterInventory(BlockState state, WorldAccess world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lckx$b;<init>(Lcvo;Lcgy;Lgt;)V
      intermediary <init> Lnet/minecraft/class_3962$class_3963;<init>(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)V
      named <init> Lnet/minecraft/block/ComposterBlock$ComposterInventory;<init>(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)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 max count of item stacks in this inventory
      Mappings:
      Namespace Name Mixin selector
      official O_ Lbac;O_()I
      intermediary method_5444 Lnet/minecraft/class_1263;method_5444()I
      named getMaxCountPerStack Lnet/minecraft/inventory/Inventory;getMaxCountPerStack()I
    • getAvailableSlots

      public int[] getAvailableSlots(Direction side)
      Gets the available slot positions that are reachable from a given side.
      Specified by:
      getAvailableSlots in interface SidedInventory
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(Lgy;)[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
    • 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.
      Specified by:
      canInsert in interface SidedInventory
      Mappings:
      Namespace Name Mixin selector
      official a Lbaq;a(ILcax;Lgy;)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
    • 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.
      Specified by:
      canExtract in interface SidedInventory
      Mappings:
      Namespace Name Mixin selector
      official b Lbaq;b(ILcax;Lgy;)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
    • markDirty

      public void markDirty()
      Specified by:
      markDirty in interface Inventory
      Overrides:
      markDirty in class SimpleInventory
      Mappings:
      Namespace Name Mixin selector
      official e Lbac;e()V
      intermediary method_5431 Lnet/minecraft/class_1263;method_5431()V
      named markDirty Lnet/minecraft/inventory/Inventory;markDirty()V