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 container, int id, int x, int y)
  • Method Details

    • onQuickCraft

      public void onQuickCraft(ItemStack picked, ItemStack original)
      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 player)
      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 amount, int maxAmount, Player player)
      Overrides:
      tryRemove in class Slot
    • safeTake

      public ItemStack safeTake(int amount, int maxAmount, Player player)
      Overrides:
      safeTake in class Slot
    • safeInsert

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

      public ItemStack safeInsert(ItemStack inputStack, int inputAmount)
      Overrides:
      safeInsert in class Slot
    • allowModification

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

      public boolean mayPlace(ItemStack itemStack)
      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 amount)
      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 player, ItemStack carried)
      Overrides:
      onTake in class Slot
    • isHighlightable

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

      public boolean isFake()
      Overrides:
      isFake in class Slot