Interface IWorkbenchItem

All Known Implementing Classes:
BattleMageArmorItem, BlankScrollItem, SageArmorItem, ScrollItem, WandItem, WarlockArmorItem, WizardArmorItem

public interface IWorkbenchItem
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.world.item.ItemStack
    applyUpgrade(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack upgrade)
     
    default boolean
    canPlace(net.minecraft.world.item.ItemStack stack)
     
    int
    getSpellSlotCount(net.minecraft.world.item.ItemStack stack)
     
    default boolean
     
    boolean
    onApplyButtonPressed(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.Slot centre, net.minecraft.world.inventory.Slot crystals, net.minecraft.world.inventory.Slot upgrade, net.minecraft.world.inventory.Slot[] spellBooks)
     
    default void
    onClearButtonPressed(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.Slot centre, net.minecraft.world.inventory.Slot crystals, net.minecraft.world.inventory.Slot upgrade, net.minecraft.world.inventory.Slot[] spellBooks)
     
    boolean
    showTooltip(net.minecraft.world.item.ItemStack stack)
     
  • Method Details

    • canPlace

      default boolean canPlace(net.minecraft.world.item.ItemStack stack)
    • getSpellSlotCount

      int getSpellSlotCount(net.minecraft.world.item.ItemStack stack)
    • onApplyButtonPressed

      boolean onApplyButtonPressed(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.Slot centre, net.minecraft.world.inventory.Slot crystals, net.minecraft.world.inventory.Slot upgrade, net.minecraft.world.inventory.Slot[] spellBooks)
    • onClearButtonPressed

      default void onClearButtonPressed(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.Slot centre, net.minecraft.world.inventory.Slot crystals, net.minecraft.world.inventory.Slot upgrade, net.minecraft.world.inventory.Slot[] spellBooks)
    • isClearable

      default boolean isClearable()
    • showTooltip

      boolean showTooltip(net.minecraft.world.item.ItemStack stack)
    • applyUpgrade

      default net.minecraft.world.item.ItemStack applyUpgrade(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack upgrade)