java.lang.Object
net.minecraft.world.inventory.Slot
net.neoforged.neoforge.items.SlotItemHandler
com.simibubi.create.content.equipment.toolbox.ToolboxSlot

public class ToolboxSlot extends net.neoforged.neoforge.items.SlotItemHandler
  • Field Summary

    Fields inherited from class net.neoforged.neoforge.items.SlotItemHandler

    index

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

    container, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    ToolboxSlot(ToolboxMenu menu, net.neoforged.neoforge.items.IItemHandler itemHandler, int index, int xPosition, int yPosition, boolean isVisible)
     
  • Method Summary

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

    Methods inherited from class net.neoforged.neoforge.items.SlotItemHandler

    getItem, getItemHandler, getMaxStackSize, initialize, mayPickup, mayPlace, onQuickCraft, remove, set

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

    allowModification, checkTakeAchievements, getContainerSlot, getNoItemIcon, getSlotIndex, hasItem, 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
  • Constructor Details

    • ToolboxSlot

      public ToolboxSlot(ToolboxMenu menu, net.neoforged.neoforge.items.IItemHandler itemHandler, int index, int xPosition, int yPosition, boolean isVisible)
  • Method Details

    • isActive

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

      public int getMaxStackSize(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getMaxStackSize in class net.neoforged.neoforge.items.SlotItemHandler