Class NonInteractiveResultSlot

java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraft.world.inventory.NonInteractiveResultSlot

public class NonInteractiveResultSlot extends Slot
  • Constructor Details

    • NonInteractiveResultSlot

      public NonInteractiveResultSlot(Container p_307372_, int p_307687_, int p_307440_, int p_307347_)
  • Method Details

    • onQuickCraft

      public void onQuickCraft(ItemStack p_307668_, ItemStack p_307399_)
      Description copied from class: Slot
      if par2 has more items than par1, onCrafting(item,countIncrease) is called
      Overrides:
      onQuickCraft in class Slot
    • mayPickup

      public boolean mayPickup(Player p_307569_)
      Description copied from class: Slot
      Return whether this slot's stack can be taken from this slot.
      Overrides:
      mayPickup in class Slot
    • tryRemove

      public Optional<ItemStack> tryRemove(int p_307436_, int p_307573_, Player p_307226_)
      Overrides:
      tryRemove in class Slot
    • safeTake

      public ItemStack safeTake(int p_307592_, int p_307524_, Player p_307360_)
      Overrides:
      safeTake in class Slot
    • safeInsert

      public ItemStack safeInsert(ItemStack p_307685_)
      Overrides:
      safeInsert in class Slot
    • safeInsert

      public ItemStack safeInsert(ItemStack p_307656_, int p_307278_)
      Overrides:
      safeInsert in class Slot
    • allowModification

      public boolean allowModification(Player p_307532_)
      Overrides:
      allowModification in class Slot
    • mayPlace

      public boolean mayPlace(ItemStack p_307504_)
      Description copied from class: Slot
      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
    • remove

      public ItemStack remove(int p_307370_)
      Description copied from class: Slot
      Decrease the size of the stack in slot (first int arg) by the amount of the second int arg. Returns the new stack.
      Overrides:
      remove in class Slot
    • onTake

      public void onTake(Player p_307447_, ItemStack p_307430_)
      Overrides:
      onTake in class Slot
    • isHighlightable

      public boolean isHighlightable()
      Overrides:
      isHighlightable in class Slot
    • isFake

      public boolean isFake()
      Overrides:
      isFake in class Slot