Class BackSlot

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

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

    Fields
    Modifier and Type
    Field
    Description
    final BackData
     
    int
     

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

    container, index, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    BackSlot(BackData backData)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
     
    boolean
    mayPickup(net.minecraft.world.entity.player.Player player)
     
    boolean
    mayPlace(net.minecraft.world.item.ItemStack stack)
     
    static net.minecraft.world.InteractionResult
    openPlayerBackpackMenu(net.minecraft.world.entity.player.Player viewer, net.minecraft.world.entity.player.Player owner)
     
    void
    set(net.minecraft.world.item.ItemStack $$0)
     

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

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

    • backData

      public final BackData backData
    • slotIndex

      public int slotIndex
  • Constructor Details

    • BackSlot

      public BackSlot(BackData backData)
  • Method Details

    • isActive

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

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

      public int getMaxStackSize()
      Overrides:
      getMaxStackSize 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
    • set

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

      public static net.minecraft.world.InteractionResult openPlayerBackpackMenu(net.minecraft.world.entity.player.Player viewer, net.minecraft.world.entity.player.Player owner)