Class BrewingStandMenu.PotionSlot

java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.world.inventory.BrewingStandMenu.PotionSlot
Enclosing class:
BrewingStandMenu

private static class BrewingStandMenu.PotionSlot extends Slot
  • Field Details

  • Constructor Details

    • PotionSlot

      public PotionSlot(Container container, int slot, int x, int y)
    • PotionSlot

      public PotionSlot(PotionBrewing potionBrewing, Container container, int slot, int x, int y)
  • Method Details

    • mayPlace

      public boolean mayPlace(ItemStack itemStack)
      Check if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.
      Overrides:
      mayPlace in class Slot
    • getMaxStackSize

      public int getMaxStackSize()
      Overrides:
      getMaxStackSize in class Slot
    • onTake

      public void onTake(Player player, ItemStack carried)
      Overrides:
      onTake in class Slot
    • mayPlaceItem

      @Deprecated public static boolean mayPlaceItem(ItemStack itemStack)
      Deprecated.
      Returns true if this ItemStack can be filled with a potion.
    • mayPlaceItem

      public static boolean mayPlaceItem(PotionBrewing potionBrewing, ItemStack itemStack)
    • getNoItemIcon

      public Identifier getNoItemIcon()
      Overrides:
      getNoItemIcon in class Slot