Files
ForestryMC/src/main/java/forestry/apiculture/items/EnumHoneyDrop.java
T

61 lines
1.7 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 EnumHoneyDrop implements ItemOverlay.IOverlayInfo {
HONEY(new Color(0xecb42d), new Color(0xe8c814)),
CHARGED(new Color(0x800505), new Color(0x9c0707), true),
OMEGA(new Color(0x191919), new Color(0x4a8ca7), true);
public static final EnumHoneyDrop[] VALUES = values();
private final String name;
private final int primaryColor;
private final int secondaryColor;
private final boolean secret;
EnumHoneyDrop(Color primary, Color secondary) {
this(primary, secondary, false);
}
EnumHoneyDrop(Color primary, Color secondary, boolean secret) {
this.name = toString().toLowerCase(Locale.ENGLISH);
this.primaryColor = primary.getRGB();
this.secondaryColor = secondary.getRGB();
this.secret = secret;
}
@Override
public String getName() {
return name;
}
@Override
public int getPrimaryColor() {
return primaryColor;
}
@Override
public int getSecondaryColor() {
return secondaryColor;
}
@Override
public boolean isSecret() {
return secret;
}
}