Class BrewingStandMenu.PotionSlot

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

static class BrewingStandMenu.PotionSlot extends Slot
  • Field Details

  • Constructor Details

    • PotionSlot

      public PotionSlot(Container pContainer, int pSlot, int pX, int pY)
    • PotionSlot

      public PotionSlot(PotionBrewing potionBrewing, Container p_39123_, int p_39124_, int p_39125_, int p_39126_)
  • Method Details

    • mayPlace

      public boolean mayPlace(ItemStack pStack)
      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 pPlayer, ItemStack pStack)
      Overrides:
      onTake in class Slot
    • mayPlaceItem

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

      public static boolean mayPlaceItem(PotionBrewing potionBrewing, ItemStack p_39134_)