Class SlotOutputOnly

java.lang.Object
net.minecraft.world.inventory.Slot
top.girlkisser.lazuli.api.menu.SlotOutputOnly

public class SlotOutputOnly extends net.minecraft.world.inventory.Slot
A slot that allows extracts but not inserts.
  • Field Summary

    Fields inherited from class net.minecraft.world.inventory.Slot

    container, index, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    SlotOutputOnly(net.minecraft.world.Container container, int slot, int x, int y)
    A slot that allows extracts but not inserts.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    allowModification(net.minecraft.world.entity.player.Player player)
     
    boolean
    mayPlace(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.item.ItemStack
    safeInsert(net.minecraft.world.item.ItemStack stack)
     
    net.minecraft.world.item.ItemStack
    safeInsert(net.minecraft.world.item.ItemStack stack, int increment)
     

    Methods inherited from class net.minecraft.world.inventory.Slot

    checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, mayPickup, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeTake, set, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SlotOutputOnly

      public SlotOutputOnly(net.minecraft.world.Container container, int slot, int x, int y)
      A slot that allows extracts but not inserts.
      Parameters:
      container - The container.
      slot - The slot index.
      x - The X position.
      y - The Y position.
  • Method Details

    • safeInsert

      public net.minecraft.world.item.ItemStack safeInsert(net.minecraft.world.item.ItemStack stack)
      Overrides:
      safeInsert in class net.minecraft.world.inventory.Slot
    • safeInsert

      public net.minecraft.world.item.ItemStack safeInsert(net.minecraft.world.item.ItemStack stack, int increment)
      Overrides:
      safeInsert in class net.minecraft.world.inventory.Slot
    • allowModification

      public boolean allowModification(net.minecraft.world.entity.player.Player player)
      Overrides:
      allowModification in class net.minecraft.world.inventory.Slot
    • mayPlace

      public boolean mayPlace(net.minecraft.world.item.ItemStack stack)
      Overrides:
      mayPlace in class net.minecraft.world.inventory.Slot