mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-17 02:45:17 +00:00
60 lines
1.5 KiB
Java
60 lines
1.5 KiB
Java
/*******************************************************************************
|
|
* Copyright (c) 2011-2014 SirSengir.
|
|
* All rights reserved. This program and the accompanying materials
|
|
* are made available under the terms of the GNU Lesser Public License v3
|
|
* which accompanies this distribution, and is available at
|
|
* http://www.gnu.org/licenses/lgpl-3.0.txt
|
|
*
|
|
* Various Contributors including, but not limited to:
|
|
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
|
|
******************************************************************************/
|
|
package forestry.apiculture.items;
|
|
|
|
import java.awt.Color;
|
|
import java.util.Locale;
|
|
|
|
import forestry.core.items.ItemOverlay;
|
|
|
|
public enum EnumPropolis implements ItemOverlay.IOverlayInfo {
|
|
NORMAL(new Color(0xc5b24e)),
|
|
STICKY(new Color(0xc68e57)),
|
|
PULSATING(new Color(0x2ccdb1), true),
|
|
SILKY(new Color(0xddff00));
|
|
|
|
public static final EnumPropolis[] VALUES = values();
|
|
|
|
private final String name;
|
|
private final int primaryColor;
|
|
private final boolean secret;
|
|
|
|
EnumPropolis(Color color) {
|
|
this(color, false);
|
|
}
|
|
|
|
EnumPropolis(Color color, boolean secret) {
|
|
this.name = toString().toLowerCase(Locale.ENGLISH);
|
|
this.primaryColor = color.getRGB();
|
|
this.secret = secret;
|
|
}
|
|
|
|
@Override
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
@Override
|
|
public int getPrimaryColor() {
|
|
return primaryColor;
|
|
}
|
|
|
|
@Override
|
|
public int getSecondaryColor() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public boolean isSecret() {
|
|
return secret;
|
|
}
|
|
}
|