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

static class ComposterBlock.FullComposterInventory
extends SimpleInventory
implements SidedInventory
  • Field Details

  • Constructor Details

  • 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
    • getAvailableSlots

      public int[] getAvailableSlots​(Direction side)
      Gets the available slot positions that are reachable from a given side.
      Specified by:
      getAvailableSlots in interface SidedInventory
    • canInsert

      public boolean canInsert​(int slot, ItemStack stack, @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
    • 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
    • markDirty

      public void markDirty()
      Specified by:
      markDirty in interface Inventory
      Overrides:
      markDirty in class SimpleInventory