Class SlotWorkbenchItem

java.lang.Object
net.minecraft.world.inventory.Slot
com.binaris.wizardry.content.menu.slot.SlotWorkbenchItem

public class SlotWorkbenchItem extends net.minecraft.world.inventory.Slot
Arcane Workbench slot that only accepts items implementing IWorkbenchItem. Notifies the menu when its contents change.
  • Field Summary

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

    container, index, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    SlotWorkbenchItem(net.minecraft.world.Container container, int slot, int x, int y, ArcaneWorkbenchMenu menu)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
    mayPlace(@NotNull net.minecraft.world.item.ItemStack stack)
     
    void
    onTake(@NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.item.ItemStack stack)
     
    void
    set(@NotNull net.minecraft.world.item.ItemStack stack)
     

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

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

    Methods inherited from class java.lang.Object

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

    • SlotWorkbenchItem

      public SlotWorkbenchItem(net.minecraft.world.Container container, int slot, int x, int y, ArcaneWorkbenchMenu menu)
  • Method Details

    • set

      public void set(@NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Overrides:
      set in class net.minecraft.world.inventory.Slot
    • onTake

      public void onTake(@NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Overrides:
      onTake in class net.minecraft.world.inventory.Slot
    • getMaxStackSize

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

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