Class RegistryUtils

java.lang.Object
com.binaris.wizardry.api.content.util.RegistryUtils

public final class RegistryUtils extends Object
  • Field Details

    • SPELL_KEY

      public static String SPELL_KEY
  • Method Details

    • getWand

      public static net.minecraft.world.item.Item getWand(@NotNull @NotNull SpellTier tier, @Nullable @Nullable Element element)
    • getCrystal

      public static net.minecraft.world.item.Item getCrystal(Element element)
    • getArmor

      public static net.minecraft.world.item.Item getArmor(WizardArmorMaterial material, Element element, net.minecraft.util.RandomSource randomSource)
    • getArmor

      public static net.minecraft.world.item.Item getArmor(WizardArmorMaterial material, Element element, net.minecraft.world.entity.EquipmentSlot slot)
    • getSpells

      public static List<Spell> getSpells(Predicate<Spell> filter)
    • getRandomElement

      public static Element getRandomElement(net.minecraft.util.RandomSource random)
    • setSpell

      public static net.minecraft.world.item.ItemStack setSpell(net.minecraft.world.item.ItemStack stack, Spell spell)
    • spellBookItem

      public static net.minecraft.world.item.ItemStack spellBookItem(Spell spell)
    • createArcaneTome

      public static net.minecraft.world.item.ItemStack createArcaneTome(SpellTier tier)
    • getArcaneTome

      public static net.minecraft.world.item.ItemStack getArcaneTome(SpellTier tier)
    • getSpell

      @NotNull public static @NotNull Spell getSpell(net.minecraft.world.item.ItemStack stack)
    • getSpellFromNbt

      @NotNull public static @NotNull Spell getSpellFromNbt(net.minecraft.nbt.CompoundTag tag)
    • isSafelyEnchantable

      public static boolean isSafelyEnchantable(net.minecraft.world.item.ItemStack stack)
    • isSafelyEnchantable

      public static boolean isSafelyEnchantable(net.minecraft.world.item.Item item)