2015-08-29 14:33:25 +02:00
|
|
|
|
/*
|
|
|
|
|
* This file ("TheColoredLampColors.java") is part of the Actually Additions Mod for Minecraft.
|
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
|
*
|
|
|
|
|
* <EFBFBD> 2015 Ellpeck
|
|
|
|
|
*/
|
|
|
|
|
|
2015-06-28 21:28:58 +02:00
|
|
|
|
package ellpeck.actuallyadditions.blocks.metalists;
|
|
|
|
|
|
|
|
|
|
import ellpeck.actuallyadditions.util.INameableItem;
|
|
|
|
|
|
|
|
|
|
public enum TheColoredLampColors implements INameableItem{
|
|
|
|
|
|
|
|
|
|
WHITE("White"),
|
|
|
|
|
ORANGE("Orange"),
|
|
|
|
|
MAGENTA("Magenta"),
|
|
|
|
|
LIGHT_BLUE("LightBlue"),
|
|
|
|
|
YELLOW("Yellow"),
|
|
|
|
|
LIME("Lime"),
|
|
|
|
|
PINK("Pink"),
|
|
|
|
|
GRAY("Gray"),
|
|
|
|
|
LIGHT_GRAY("LightGray"),
|
|
|
|
|
CYAN("Cyan"),
|
|
|
|
|
PURPLE("Purple"),
|
|
|
|
|
BLUE("Blue"),
|
|
|
|
|
BROWN("Brown"),
|
|
|
|
|
GREEN("Green"),
|
|
|
|
|
RED("Red"),
|
|
|
|
|
BLACK("Black");
|
|
|
|
|
|
|
|
|
|
public String name;
|
|
|
|
|
|
|
|
|
|
TheColoredLampColors(String name){
|
|
|
|
|
this.name = name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getName(){
|
|
|
|
|
return name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static TheColoredLampColors getColorFromDyeName(String color){
|
2015-06-29 20:55:06 +02:00
|
|
|
|
if(color.substring(0, 3).equals("dye")){
|
|
|
|
|
String actualName = color.substring(3);
|
|
|
|
|
for(int i = 0; i < values().length; i++){
|
|
|
|
|
if(values()[i].getName().equals(actualName)) return values()[i];
|
|
|
|
|
}
|
2015-06-28 21:28:58 +02:00
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|