Class ComposterBlock.DummyInventory

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

private static class ComposterBlock.DummyInventory extends SimpleInventory implements SidedInventory
Mappings:
Namespace Name
named net/minecraft/block/ComposterBlock$DummyInventory
intermediary net/minecraft/class_3962$class_3925
official dhj$a
  • Constructor Details

    • DummyInventory

      public DummyInventory()
  • Method Details

    • 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 Lbrd;a(Lji;)[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 Lbrd;a(ILcuq;Lji;)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 Lbrd;b(ILcuq;Lji;)Z