Class InSlot

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

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

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

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

    container, index, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    InSlot(BackData backData)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
     
    com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation>
     
    boolean
     
    boolean
    mayPlace(net.minecraft.world.item.ItemStack stack)
     

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

    allowModification, checkTakeAchievements, getContainerSlot, getMaxStackSize, getMaxStackSize, hasItem, isHighlightable, mayPickup, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeInsert, safeInsert, safeTake, set, setByPlayer, setChanged, tryRemove

    Methods inherited from class java.lang.Object

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

    • BACKPACK_ATLAS

      public static final net.minecraft.resources.ResourceLocation BACKPACK_ATLAS
    • INPUT_ALT

      public static final net.minecraft.resources.ResourceLocation INPUT_ALT
    • backData

      public final BackData backData
  • Constructor Details

    • InSlot

      public InSlot(BackData backData)
  • Method Details

    • 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
    • isActive

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

      public net.minecraft.world.item.ItemStack getItem()
      Overrides:
      getItem 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