TF-ProjectKorra/src/com/projectkorra/projectkorra/element/Element.java
2019-10-26 16:57:25 +10:00

45 lines
930 B
Java

package com.projectkorra.projectkorra.element;
import org.bukkit.ChatColor;
public class Element {
private final int elementId;
private final String elementName;
private final String displayName;
private final ChatColor color;
private final ElementManager.ElementType type;
public Element(int elementId, String elementName, String displayName, ChatColor color, ElementManager.ElementType type) {
this.elementId = elementId;
this.elementName = elementName;
this.displayName = displayName;
this.color = color;
this.type = type;
}
public int getId() {
return this.elementId;
}
public String getName() {
return this.elementName;
}
public String getDisplayName() {
return this.displayName;
}
public ChatColor getColor() {
return this.color;
}
public String getColoredName() {
return this.color + this.displayName;
}
public ElementManager.ElementType getType() {
return this.type;
}
}