Class ContainerSlot

java.lang.Object
net.minecraft.world.inventory.Slot
net.ixdarklord.coolcatcore.api.container.ContainerSlot

public class ContainerSlot extends net.minecraft.world.inventory.Slot
A menu slot of a SlotContainer that follows its layout: filters and SlotRole.OUTPUT decide what a player may put in, and slot limits how much.
  • Field Summary

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

    container, index, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContainerSlot(SlotContainer container, int slot, int x, int y)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
     
    int
    getMaxStackSize(net.minecraft.world.item.ItemStack stack)
     
    boolean
    mayPlace(net.minecraft.world.item.ItemStack stack)
     

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

    allowModification, checkTakeAchievements, getContainerSlot, getItem, getNoItemIcon, hasItem, isActive, isFake, isHighlightable, mayPickup, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeInsert, safeInsert, safeTake, set, setByPlayer, setByPlayer, setChanged, tryRemove

    Methods inherited from class Object

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

    • ContainerSlot

      public ContainerSlot(SlotContainer container, int slot, int x, int y)
  • Method Details

    • getHolder

      public SlotContainer getHolder()
    • mayPlace

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

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

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