mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 22:07:59 +01:00
35 lines
741 B
Java
35 lines
741 B
Java
|
package com.minelittlepony.unicopia.spell;
|
||
|
|
||
|
import net.minecraft.util.text.TextFormatting;
|
||
|
|
||
|
public enum SpellAffinity {
|
||
|
GOOD(TextFormatting.BLUE, -1),
|
||
|
NEUTRAL(TextFormatting.WHITE, 0),
|
||
|
BAD(TextFormatting.RED, 1);
|
||
|
|
||
|
private final TextFormatting color;
|
||
|
|
||
|
private final int corruption;
|
||
|
|
||
|
SpellAffinity(TextFormatting color, int corruption) {
|
||
|
this.color = color;
|
||
|
this.corruption = corruption;
|
||
|
}
|
||
|
|
||
|
public TextFormatting getColourCode() {
|
||
|
return color;
|
||
|
}
|
||
|
|
||
|
public String getTranslationKey() {
|
||
|
return this == BAD ? "curse" : "spell";
|
||
|
}
|
||
|
|
||
|
public int getCorruption() {
|
||
|
return corruption;
|
||
|
}
|
||
|
|
||
|
public boolean isNeutral() {
|
||
|
return this == NEUTRAL;
|
||
|
}
|
||
|
}
|