Mark EnumColor as deprecated

This commit is contained in:
Marcel Konrad
2018-09-11 00:04:28 +02:00
parent 65e41fb7d8
commit ee13f9ccdb

View File

@@ -1,8 +1,11 @@
package exopandora.worldhandler.format; package exopandora.worldhandler.format;
import javax.annotation.Nullable;
import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.fml.relauncher.SideOnly;
@Deprecated
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public enum EnumColor public enum EnumColor
{ {
@@ -55,6 +58,7 @@ public enum EnumColor
return "\u00A7" + this.prefix; return "\u00A7" + this.prefix;
} }
@Nullable
public static EnumColor getColorFromId(int id) public static EnumColor getColorFromId(int id)
{ {
if(id >= 0 && id < EnumColor.values().length) if(id >= 0 && id < EnumColor.values().length)