java.lang.Object
com.binaris.wizardry.api.content.spell.Element

public class Element extends Object
  • Constructor Details

    • Element

      public Element(net.minecraft.ChatFormatting colour, int... colors)
  • Method Details

    • getColors

      public int[] getColors()
    • getDescriptionFormatted

      public net.minecraft.network.chat.Component getDescriptionFormatted()
      Will return the description for the spell (e.g. "Fireball")
    • getOrCreateDescriptionId

      protected String getOrCreateDescriptionId()
    • getDescriptionId

      public String getDescriptionId()
      Will return the description ID for the spell (e.g. "spell.ebwizardry.fireball") if you want the location instead, use getLocation()
    • getOrCreateLocation

      protected net.minecraft.resources.ResourceLocation getOrCreateLocation()
    • getLocation

      public net.minecraft.resources.ResourceLocation getLocation()
      Will return the location for the spell (e.g. "ebwizardry:fireball")
    • is

      public final boolean is(net.minecraft.resources.ResourceLocation location)
      Will return true if the spell is registered at the given location
    • is

      public final boolean is(String location)
      Will return true if the spell is registered at the given location
    • getName

      public String getName()
    • getColor

      public net.minecraft.ChatFormatting getColor()
    • getWizardName

      public net.minecraft.network.chat.Component getWizardName()
    • getIconId

      public net.minecraft.resources.ResourceLocation getIconId()