Add rune type colors Ritual Diviner tooltip
Fixes casing for direction as well. IE: north -> North
This commit is contained in:
parent
253da93b3e
commit
dce6bf1e93
3 changed files with 29 additions and 31 deletions
|
@ -3,18 +3,25 @@ package WayofTime.bloodmagic.api.ritual;
|
|||
import WayofTime.bloodmagic.api.Constants;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IStringSerializable;
|
||||
import net.minecraft.util.text.TextFormatting;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public enum EnumRuneType implements IStringSerializable
|
||||
{
|
||||
BLANK,
|
||||
WATER,
|
||||
FIRE,
|
||||
EARTH,
|
||||
AIR,
|
||||
DUSK,
|
||||
DAWN;
|
||||
BLANK(TextFormatting.GRAY),
|
||||
WATER(TextFormatting.AQUA),
|
||||
FIRE(TextFormatting.RED),
|
||||
EARTH(TextFormatting.GREEN),
|
||||
AIR(TextFormatting.WHITE),
|
||||
DUSK(TextFormatting.DARK_GRAY),
|
||||
DAWN(TextFormatting.GOLD);
|
||||
|
||||
public final TextFormatting colorCode;
|
||||
|
||||
EnumRuneType(TextFormatting colorCode) {
|
||||
this.colorCode = colorCode;
|
||||
}
|
||||
|
||||
public static EnumRuneType byMetadata(int meta)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue