public class Element
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Element.ElementType |
static class |
Element.SubElement |
Modifier and Type | Field and Description |
---|---|
static Element |
AIR |
static Element |
AVATAR |
static Element.SubElement |
BLOOD |
static Element |
CHI |
static Element.SubElement |
COMBUSTION |
static Element |
EARTH |
static Element |
FIRE |
static Element.SubElement |
FLIGHT |
static Element.SubElement |
HEALING |
static Element.SubElement |
ICE |
static Element.SubElement |
LAVA |
static Element.SubElement |
LIGHTNING |
static Element.SubElement |
METAL |
static Element.SubElement |
PLANT |
static Element.SubElement |
SAND |
static Element.SubElement |
SPIRITUAL |
static Element |
WATER |
Constructor and Description |
---|
Element(java.lang.String name)
To be used when creating a new Element.
|
Element(java.lang.String name,
Element.ElementType type)
To be used when creating a new Element.
|
Element(java.lang.String name,
Element.ElementType type,
org.bukkit.plugin.Plugin plugin)
To be used when creating a new Element.
|
Modifier and Type | Method and Description |
---|---|
static Element |
fromString(java.lang.String element) |
static Element[] |
getAddonElements()
Returns an array of all the addon elements.
|
static Element.SubElement[] |
getAddonSubElements()
Returns an array of all the addon subelements.
|
static Element.SubElement[] |
getAddonSubElements(Element element)
Returns array of addon subelements belonging to a parent element.
|
static Element[] |
getAllElements()
Returns an array of all official and addon elements excluding
subelements.
|
static Element.SubElement[] |
getAllSubElements()
Returns all subelements, official and addon.
|
org.bukkit.ChatColor |
getColor() |
static Element |
getElement(java.lang.String name) |
static Element[] |
getElements()
Returns an array of all the official elements and subelements.
|
static Element[] |
getMainElements()
Returns an array of all the official elements.
|
java.lang.String |
getName() |
org.bukkit.plugin.Plugin |
getPlugin() |
java.lang.String |
getPrefix() |
org.bukkit.ChatColor |
getSubColor() |
static Element.SubElement[] |
getSubElements()
Return official subelements.
|
static Element.SubElement[] |
getSubElements(Element element)
Return all subelements belonging to a parent element.
|
Element.ElementType |
getType() |
java.lang.String |
toString() |
public static final Element AIR
public static final Element WATER
public static final Element EARTH
public static final Element FIRE
public static final Element CHI
public static final Element AVATAR
public static final Element.SubElement FLIGHT
public static final Element.SubElement SPIRITUAL
public static final Element.SubElement BLOOD
public static final Element.SubElement HEALING
public static final Element.SubElement ICE
public static final Element.SubElement PLANT
public static final Element.SubElement LAVA
public static final Element.SubElement METAL
public static final Element.SubElement SAND
public static final Element.SubElement LIGHTNING
public static final Element.SubElement COMBUSTION
public Element(java.lang.String name)
name
- Name of the new Element.public Element(java.lang.String name, Element.ElementType type)
name
- Name of the new Element.type
- ElementType specifies if its a regular element or chi style
element.public Element(java.lang.String name, Element.ElementType type, org.bukkit.plugin.Plugin plugin)
name
- Name of the new Element.type
- ElementType specifies if its a regular element or chi style
element.plugin
- The plugin that is adding the element.public java.lang.String getPrefix()
public org.bukkit.ChatColor getColor()
public org.bukkit.ChatColor getSubColor()
public java.lang.String getName()
public org.bukkit.plugin.Plugin getPlugin()
public Element.ElementType getType()
public java.lang.String toString()
toString
in class java.lang.Object
public static Element getElement(java.lang.String name)
public static Element[] getAllElements()
public static Element[] getElements()
public static Element[] getMainElements()
public static Element[] getAddonElements()
public static Element.SubElement[] getAllSubElements()
public static Element.SubElement[] getSubElements()
public static Element.SubElement[] getSubElements(Element element)
element
- public static Element.SubElement[] getAddonSubElements()
public static Element.SubElement[] getAddonSubElements(Element element)
element
- public static Element fromString(java.lang.String element)