Class GhostSlot

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

public class GhostSlot extends net.minecraft.world.inventory.Slot
A slot which copies the inserted item and clears when a player attempts to take the contained item.
  • Field Summary

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

    container, index, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    GhostSlot(net.minecraft.world.Container container, int slot, int x, int y)
    A slot which copies the inserted item and clears when a player attempts to take the contained item.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    net.minecraft.world.item.ItemStack
    safeInsert(net.minecraft.world.item.ItemStack stack, int increment)
     

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

    allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isHighlightable, isSameInventory, mayPickup, mayPlace, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeInsert, 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

    • GhostSlot

      public GhostSlot(net.minecraft.world.Container container, int slot, int x, int y)
      A slot which copies the inserted item and clears when a player attempts to take the contained item.
      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, int increment)
      Overrides:
      safeInsert in class net.minecraft.world.inventory.Slot
    • isFake

      public boolean isFake()
      Overrides:
      isFake in class net.minecraft.world.inventory.Slot