Class ChestMenuContainerSlot

java.lang.Object
net.minecraft.world.inventory.Slot
dev.latvian.mods.kubejs.gui.chest.ChestMenuContainerSlot

public class ChestMenuContainerSlot extends net.minecraft.world.inventory.Slot
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
     
     

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

    container, index, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChestMenuContainerSlot(CustomChestMenu menu, int index, int xPosition, int yPosition)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.world.item.ItemStack
     
    int
     
    int
    getMaxStackSize(@NotNull net.minecraft.world.item.ItemStack stack)
     
    boolean
    mayPickup(net.minecraft.world.entity.player.Player playerIn)
     
    boolean
    mayPlace(@NotNull net.minecraft.world.item.ItemStack stack)
     
    void
    onQuickCraft(@NotNull net.minecraft.world.item.ItemStack oldStackIn, @NotNull net.minecraft.world.item.ItemStack newStackIn)
     
    @NotNull net.minecraft.world.item.ItemStack
    remove(int amount)
     
    void
    set(@NotNull net.minecraft.world.item.ItemStack stack)
     

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

    allowModification, checkTakeAchievements, getContainerSlot, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, onQuickCraft, onSwapCraft, onTake, safeInsert, safeInsert, safeTake, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove

    Methods inherited from class java.lang.Object

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

    • _index

      public final int _index
  • Constructor Details

    • ChestMenuContainerSlot

      public ChestMenuContainerSlot(CustomChestMenu menu, int index, int xPosition, int yPosition)
  • Method Details

    • mayPlace

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

      @NotNull public @NotNull net.minecraft.world.item.ItemStack getItem()
      Overrides:
      getItem in class net.minecraft.world.inventory.Slot
    • set

      public void set(@NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Overrides:
      set in class net.minecraft.world.inventory.Slot
    • onQuickCraft

      public void onQuickCraft(@NotNull @NotNull net.minecraft.world.item.ItemStack oldStackIn, @NotNull @NotNull net.minecraft.world.item.ItemStack newStackIn)
      Overrides:
      onQuickCraft in class net.minecraft.world.inventory.Slot
    • getMaxStackSize

      public int getMaxStackSize()
      Overrides:
      getMaxStackSize in class net.minecraft.world.inventory.Slot
    • getMaxStackSize

      public int getMaxStackSize(@NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Overrides:
      getMaxStackSize in class net.minecraft.world.inventory.Slot
    • mayPickup

      public boolean mayPickup(net.minecraft.world.entity.player.Player playerIn)
      Overrides:
      mayPickup in class net.minecraft.world.inventory.Slot
    • remove

      @NotNull public @NotNull net.minecraft.world.item.ItemStack remove(int amount)
      Overrides:
      remove in class net.minecraft.world.inventory.Slot