mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 17:34:26 +00:00
56 lines
1.4 KiB
Java
56 lines
1.4 KiB
Java
package kamkeel.npcs.controllers.data.attribute;
|
||
|
||
public class AttributeDefinition {
|
||
private final String key;
|
||
private String translationKey;// e.g., "main_attack_flat"
|
||
private final String displayName; // Human‑readable name
|
||
private final char colorCode;
|
||
private final AttributeValueType attributeValueType;
|
||
private final AttributeSection section;
|
||
|
||
public AttributeDefinition(String key, String displayName, char colorCode, AttributeValueType attributeValueType, AttributeSection section) {
|
||
this.key = key;
|
||
this.translationKey = "rpgcore:attribute." + key;
|
||
this.displayName = displayName;
|
||
this.attributeValueType = attributeValueType;
|
||
this.section = section;
|
||
this.colorCode = colorCode;
|
||
}
|
||
|
||
public String getKey() {
|
||
return key;
|
||
}
|
||
|
||
public String getDisplayName() {
|
||
return displayName;
|
||
}
|
||
|
||
public String getTranslationKey() {
|
||
return translationKey;
|
||
}
|
||
|
||
public void setTranslationKey(String translationKey) {
|
||
this.translationKey = translationKey;
|
||
}
|
||
|
||
public AttributeValueType getValueType() {
|
||
return attributeValueType;
|
||
}
|
||
|
||
public AttributeSection getSection() {
|
||
return section;
|
||
}
|
||
|
||
public char getColorCode() {
|
||
return colorCode;
|
||
}
|
||
|
||
public enum AttributeSection {
|
||
BASE,
|
||
MODIFIER,
|
||
STATS,
|
||
INFO,
|
||
EXTRA;
|
||
}
|
||
}
|