Class MenuSlot

java.lang.Object
net.minecraft.world.inventory.Slot
com.beansgalaxy.backpacks.screen.MenuSlot

public class MenuSlot extends net.minecraft.world.inventory.Slot
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    final int
     
    static final int
     
    static final net.minecraft.resources.ResourceLocation
     
    static final int
     
    static final int
     
    static final int
     
     

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

    container, index, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    MenuSlot(net.minecraft.world.Container container, int index, Runnable onClick)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    net.minecraft.world.item.ItemStack
     
    com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation>
     
    static int[]
    getXY(BackpackInventory inventory, int slot)
     
    boolean
     
    boolean
     
    boolean
    mayPickup(net.minecraft.world.entity.player.Player $$0)
     
    void
    onTake(net.minecraft.world.entity.player.Player $$0, net.minecraft.world.item.ItemStack $$1)
     
    net.minecraft.world.item.ItemStack
    remove(int $$0)
     
    void
    set(net.minecraft.world.item.ItemStack $$0)
     

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

    allowModification, checkTakeAchievements, getMaxStackSize, getMaxStackSize, getSlotIndex, hasItem, isSameInventory, mayPlace, onQuickCraft, onQuickCraft, onSwapCraft, safeInsert, safeInsert, safeTake, setBackground, setByPlayer, setChanged, tryRemove

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • MenuSlot

      public MenuSlot(net.minecraft.world.Container container, int index, Runnable onClick)
  • Method Details

    • isActive

      public boolean isActive()
      Overrides:
      isActive in class net.minecraft.world.inventory.Slot
    • isHighlightable

      public boolean isHighlightable()
      Overrides:
      isHighlightable in class net.minecraft.world.inventory.Slot
    • getNoItemIcon

      public com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> getNoItemIcon()
      Overrides:
      getNoItemIcon in class net.minecraft.world.inventory.Slot
    • getItem

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

      public void set(net.minecraft.world.item.ItemStack $$0)
      Overrides:
      set in class net.minecraft.world.inventory.Slot
    • remove

      public net.minecraft.world.item.ItemStack remove(int $$0)
      Overrides:
      remove in class net.minecraft.world.inventory.Slot
    • mayPickup

      public boolean mayPickup(net.minecraft.world.entity.player.Player $$0)
      Overrides:
      mayPickup in class net.minecraft.world.inventory.Slot
    • getContainerSlot

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

      public void onTake(net.minecraft.world.entity.player.Player $$0, net.minecraft.world.item.ItemStack $$1)
      Overrides:
      onTake in class net.minecraft.world.inventory.Slot
    • getXY

      public static int[] getXY(BackpackInventory inventory, int slot)