Class WorkbenchUtils
java.lang.Object
com.binaris.wizardry.api.content.util.WorkbenchUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanapplySpellBooks(net.minecraft.world.inventory.Slot centre, net.minecraft.world.inventory.Slot[] spellBooks, SpellContext ctx) static booleancanBindSpell(Spell spell, List<Spell> spells, SpellTier origin, int slot, SpellContext ctx) static intgetManaValuePerCrystal(net.minecraft.world.item.ItemStack crystal) static booleanrechargeManaFromCrystals(net.minecraft.world.inventory.Slot centre, net.minecraft.world.inventory.Slot crystals) static voidupdateSpellSlot(net.minecraft.world.item.ItemStack wand, List<Spell> spells, int slot, Spell spell)
-
Method Details
-
rechargeManaFromCrystals
public static boolean rechargeManaFromCrystals(net.minecraft.world.inventory.Slot centre, net.minecraft.world.inventory.Slot crystals) -
getManaValuePerCrystal
public static int getManaValuePerCrystal(net.minecraft.world.item.ItemStack crystal) -
applySpellBooks
public static boolean applySpellBooks(net.minecraft.world.inventory.Slot centre, net.minecraft.world.inventory.Slot[] spellBooks, SpellContext ctx) -
canBindSpell
public static boolean canBindSpell(Spell spell, List<Spell> spells, SpellTier origin, int slot, SpellContext ctx) -
updateSpellSlot
-