mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-12 16:27:34 +00:00
Refactored the Aura provider code to not depend on Thaumcraft & allow for other modes of providing aura to bees. Added Mana Apiary Booster. Added Botania lexicon integration for Alfheim bee, Mana apiary booster.
34 lines
822 B
Java
34 lines
822 B
Java
package magicbees.bees;
|
|
|
|
import magicbees.api.bees.AuraChargeType;
|
|
|
|
public enum AuraCharge {
|
|
MUTATION(AuraChargeType.MUTATION, 850, 11),
|
|
DEATH(AuraChargeType.DEATH, 400, 5),
|
|
PRODUCTION(AuraChargeType.PRODUCTION, 300, 3),
|
|
;
|
|
|
|
public final AuraChargeType type;
|
|
public final int duration;
|
|
/** The number of ticks to count between draining vis from the environment **/
|
|
public final int tickRate;
|
|
public final int flag;
|
|
|
|
AuraCharge(AuraChargeType chargeType, int duration, int tickRate) {
|
|
this.type = chargeType;
|
|
this.duration = duration;
|
|
this.tickRate = tickRate;
|
|
flag = 1 << ordinal();
|
|
}
|
|
|
|
public static AuraCharge fromChargeType(AuraChargeType type) {
|
|
for (AuraCharge charge : values()) {
|
|
if (type == charge.type) {
|
|
return charge;
|
|
}
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|