Package top.girlkisser.lazuli.api.menu
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
ConstructorsConstructorDescriptionGhostSlot(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 TypeMethodDescriptionbooleanisFake()net.minecraft.world.item.ItemStacksafeInsert(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
-
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:
safeInsertin classnet.minecraft.world.inventory.Slot
-
isFake
public boolean isFake()- Overrides:
isFakein classnet.minecraft.world.inventory.Slot
-