Class Element
java.lang.Object
com.binaris.wizardry.api.content.spell.Element
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.ChatFormattinggetColor()int[]net.minecraft.network.chat.ComponentWill return the description for the spell (e.g.Will return the description ID for the spell (e.g.net.minecraft.resources.ResourceLocationnet.minecraft.resources.ResourceLocationWill return the location for the spell (e.g.getName()protected Stringprotected net.minecraft.resources.ResourceLocationnet.minecraft.network.chat.Componentfinal booleanWill return true if the spell is registered at the given locationfinal booleanis(net.minecraft.resources.ResourceLocation location) Will return true if the spell is registered at the given location
-
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
-
getDescriptionId
Will return the description ID for the spell (e.g. "spell.ebwizardry.fireball") if you want the location instead, usegetLocation() -
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
Will return true if the spell is registered at the given location -
getName
-
getColor
public net.minecraft.ChatFormatting getColor() -
getWizardName
public net.minecraft.network.chat.Component getWizardName() -
getIconId
public net.minecraft.resources.ResourceLocation getIconId()
-