|
@@ -8,136 +8,137 @@ public enum Effect
|
|
{
|
|
{
|
|
// comments indicate, that events aren't in active oder passive effect packages
|
|
// comments indicate, that events aren't in active oder passive effect packages
|
|
// passive effects
|
|
// passive effects
|
|
- ENCHANTER (false), // me.kt.custom.CustomEnchanting
|
|
|
|
- LESS_HUNGER (false), // me.kt.environment.EnvironmentTick
|
|
|
|
- LESS_THIRST (false), // me.kt.environment.EnvironmentAPI
|
|
|
|
- LESS_ENERGY_USE (false), // me.kt.environment.EnvironmentAPI
|
|
|
|
- LESS_COLD (false), // me.kt.environment.EnvironmentAPI
|
|
|
|
- FASTER_MANA (false), // me.kt.environment.EnvironmentAPI
|
|
|
|
- BREED_COW (false),
|
|
|
|
- BREED_PIG (false),
|
|
|
|
- BREED_SHEEP (false),
|
|
|
|
- BREED_RABBIT (false),
|
|
|
|
- BREED_CHICKEN (false),
|
|
|
|
- BREED_HORSE (false),
|
|
|
|
- BREED_MUSHROOMCOW (false),
|
|
|
|
- GRAVEL_SAND_DIGGER (false),
|
|
|
|
- MORE_MINERALS (false),
|
|
|
|
- MORE_CROPS (false),
|
|
|
|
- TREE_PICKER (false),
|
|
|
|
- MORE_SAPLINGS (false),
|
|
|
|
- CAKE_POWER (false),
|
|
|
|
- SNEAKING (false),
|
|
|
|
- SCENT (false),
|
|
|
|
- MUGGING (false),
|
|
|
|
- FAST_DIGGING (false),
|
|
|
|
- XP_COLLECTOR (false),
|
|
|
|
- MORE_DROPS (false),
|
|
|
|
- FASTER_ARROWS (false),
|
|
|
|
- ARROW_SAVER (false),
|
|
|
|
- MORE_AXE_DAMAGE (false),
|
|
|
|
- MORE_HOE_DAMAGE (false),
|
|
|
|
- MORE_PICKAXE_DAMAGE (false),
|
|
|
|
- MORE_SHOVEL_DAMAGE (false),
|
|
|
|
- MORE_SWORD_DAMAGE (false),
|
|
|
|
- MORE_DAGGER_DAMAGE (false),
|
|
|
|
- MORE_HAMMER_DAMAGE (false),
|
|
|
|
- MORE_STICK_DAMAGE (false),
|
|
|
|
- FISHING (false),
|
|
|
|
- POTION_SAVER (false),
|
|
|
|
- BREWING (false),
|
|
|
|
- CAULDRON_FILLING (false),
|
|
|
|
- SMELTING (false),
|
|
|
|
- NO_POISON (false),
|
|
|
|
- LESS_FALL_DAMAGE (false),
|
|
|
|
- LESS_DAMAGE (false),
|
|
|
|
- SMITH (false),
|
|
|
|
- FAST_ENDERPEARL_SHOOT (false),
|
|
|
|
- PEARL_SAVER (false),
|
|
|
|
- NO_ENDERPEARL_DAMAGE (false),
|
|
|
|
- GOLD_WASHER (false),
|
|
|
|
- GOLD_RUSH (false),
|
|
|
|
- USE_WAND (false),
|
|
|
|
- LESS_ITEM_LOSS (false),
|
|
|
|
|
|
+ ENCHANTER , // me.kt.custom.CustomEnchanting
|
|
|
|
+ LESS_HUNGER , // me.kt.environment.EnvironmentTick
|
|
|
|
+ LESS_THIRST , // me.kt.environment.EnvironmentAPI
|
|
|
|
+ LESS_ENERGY_USE , // me.kt.environment.EnvironmentAPI
|
|
|
|
+ LESS_COLD , // me.kt.environment.EnvironmentAPI
|
|
|
|
+ FASTER_MANA , // me.kt.environment.EnvironmentAPI
|
|
|
|
+ BREED_COW ,
|
|
|
|
+ BREED_PIG ,
|
|
|
|
+ BREED_SHEEP ,
|
|
|
|
+ BREED_RABBIT ,
|
|
|
|
+ BREED_CHICKEN ,
|
|
|
|
+ BREED_HORSE ,
|
|
|
|
+ BREED_MUSHROOMCOW ,
|
|
|
|
+ GRAVEL_SAND_DIGGER ,
|
|
|
|
+ MORE_MINERALS ,
|
|
|
|
+ MORE_CROPS ,
|
|
|
|
+ TREE_PICKER ,
|
|
|
|
+ MORE_SAPLINGS ,
|
|
|
|
+ CAKE_POWER ,
|
|
|
|
+ SNEAKING ,
|
|
|
|
+ SCENT ,
|
|
|
|
+ MUGGING ,
|
|
|
|
+ FAST_DIGGING ,
|
|
|
|
+ XP_COLLECTOR ,
|
|
|
|
+ MORE_DROPS ,
|
|
|
|
+ FASTER_ARROWS ,
|
|
|
|
+ ARROW_SAVER ,
|
|
|
|
+ MORE_AXE_DAMAGE ,
|
|
|
|
+ MORE_HOE_DAMAGE ,
|
|
|
|
+ MORE_PICKAXE_DAMAGE ,
|
|
|
|
+ MORE_SHOVEL_DAMAGE ,
|
|
|
|
+ MORE_SWORD_DAMAGE ,
|
|
|
|
+ MORE_DAGGER_DAMAGE ,
|
|
|
|
+ MORE_HAMMER_DAMAGE ,
|
|
|
|
+ MORE_STICK_DAMAGE ,
|
|
|
|
+ FISHING ,
|
|
|
|
+ POTION_SAVER ,
|
|
|
|
+ BREWING ,
|
|
|
|
+ CAULDRON_FILLING ,
|
|
|
|
+ SMELTING ,
|
|
|
|
+ NO_POISON ,
|
|
|
|
+ LESS_FALL_DAMAGE ,
|
|
|
|
+ LESS_DAMAGE ,
|
|
|
|
+ SMITH ,
|
|
|
|
+ FAST_ENDERPEARL_SHOOT ,
|
|
|
|
+ PEARL_SAVER ,
|
|
|
|
+ NO_ENDERPEARL_DAMAGE ,
|
|
|
|
+ GOLD_WASHER ,
|
|
|
|
+ GOLD_RUSH ,
|
|
|
|
+ USE_WAND ,
|
|
|
|
+ LESS_ITEM_LOSS ,
|
|
|
|
+ NO_ARMOR_DROPPING ,
|
|
|
|
|
|
// active effects
|
|
// active effects
|
|
- ARCANE_SHOT (true, ArcaneShot.class),
|
|
|
|
- BLINDING_SHOT (true, BlindingShot.class),
|
|
|
|
- BUNNY_HOP (true, BunnyHop.class),
|
|
|
|
- CALL_BACK (true, CallBack.class),
|
|
|
|
- CLUSTER_BOMB (true, ClusterBomb.class),
|
|
|
|
- DAY (true, Day.class),
|
|
|
|
- DOOMED (true, Doomed.class),
|
|
|
|
- EARTHQUAKE (true, Earthquake.class),
|
|
|
|
- ELEVATION (true, Elevation.class),
|
|
|
|
- ELVISH_HORN (true, ElvishHorn.class),
|
|
|
|
- ENDERCHEST (true, Enderchest.class),
|
|
|
|
- EXPLOSION (true, Explosion.class),
|
|
|
|
- FALL_IMMUNITY (true, FallImmunity.class),
|
|
|
|
- FIRE (true, Fire.class),
|
|
|
|
- FIREBALL (true, Fireball.class),
|
|
|
|
- FIRE_SHOT (true, FireShot.class),
|
|
|
|
- FLYING (true, Flying.class),
|
|
|
|
- FREEZE (true, Freeze.class),
|
|
|
|
- GRAPPLING_HOOK (true, GrapplingHook.class),
|
|
|
|
- HARM (true, Harm.class),
|
|
|
|
- HARVEST (true, Harvest.class),
|
|
|
|
- HEAL (true, Heal.class),
|
|
|
|
- HEAL_RAIN (true, HealRain.class),
|
|
|
|
- HEARTS (true, Hearts.class),
|
|
|
|
- HEART_SEEKER (true, HeartSeeker.class),
|
|
|
|
- IMMORTALITY (true, Immortality.class),
|
|
|
|
- INVISIBILITY (true, Invisibility.class),
|
|
|
|
- JUMP (true, Jump.class),
|
|
|
|
- KICK (true, Kick.class),
|
|
|
|
- LEAF_COCOON (true, LeafCocoon.class),
|
|
|
|
- LOCK_PICK (true, LockPick.class),
|
|
|
|
- LUCKY (true, Lucky.class),
|
|
|
|
- MUSKET (true, Musket.class),
|
|
|
|
- NAIL_DOWN (true, NailDown.class),
|
|
|
|
- NAIL_TRAP (true, NailTrap.class),
|
|
|
|
- NET_TRAP (true, NetTrap.class),
|
|
|
|
- NIGHT (true, Night.class),
|
|
|
|
- POISON (true, Poison.class),
|
|
|
|
- POISONED_BLADE (true, PoisonedBlade.class),
|
|
|
|
- POISON_VOLLEY (true, PoisonVolley.class),
|
|
|
|
- POWER (true, Power.class),
|
|
|
|
- POWER_ATTACK (true, PowerAttack.class),
|
|
|
|
- PULL (true, Pull.class),
|
|
|
|
- PUSH (true, Push.class),
|
|
|
|
- QUICK_SHOT (true, QuickShot.class),
|
|
|
|
- RAIN (true, Rain.class),
|
|
|
|
- RAPID_FIRE (true, RapidFire.class),
|
|
|
|
- ROOTING (true, Rooting.class),
|
|
|
|
- SHADOW (true, Shadow.class),
|
|
|
|
- SHADOW_HIT (true, ShadowHit.class),
|
|
|
|
- SHADOW_STEP (true, ShadowStep.class),
|
|
|
|
- SILENCE (true, Silence.class),
|
|
|
|
- SLOWING_SHOT (true, SlowingShot.class),
|
|
|
|
- SMOKE_BOMB (true, SmokeBomb.class),
|
|
|
|
- SPRINT (true, Sprint.class),
|
|
|
|
- STONE (true, Stone.class),
|
|
|
|
- SUN (true, Sun.class),
|
|
|
|
- TELEPORT_PLAYER (true, TeleportPlayer.class),
|
|
|
|
- THOR (true, Thor.class),
|
|
|
|
- UNLUCKY (true, Unlucky.class),
|
|
|
|
- VINE_TRAP (true, VineTrap.class),
|
|
|
|
- WORKBENCH (true, Workbench.class);
|
|
|
|
|
|
+ ARCANE_SHOT (ArcaneShot.class),
|
|
|
|
+ BLINDING_SHOT (BlindingShot.class),
|
|
|
|
+ BUNNY_HOP (BunnyHop.class),
|
|
|
|
+ CALL_BACK (CallBack.class),
|
|
|
|
+ CLUSTER_BOMB (ClusterBomb.class),
|
|
|
|
+ DAY (Day.class),
|
|
|
|
+ DOOMED (Doomed.class),
|
|
|
|
+ EARTHQUAKE (Earthquake.class),
|
|
|
|
+ ELEVATION (Elevation.class),
|
|
|
|
+ ELVISH_HORN (ElvishHorn.class),
|
|
|
|
+ ENDERCHEST (Enderchest.class),
|
|
|
|
+ EXPLOSION (Explosion.class),
|
|
|
|
+ FALL_IMMUNITY (FallImmunity.class),
|
|
|
|
+ FIRE (Fire.class),
|
|
|
|
+ FIREBALL (Fireball.class),
|
|
|
|
+ FIRE_SHOT (FireShot.class),
|
|
|
|
+ FLYING (Flying.class),
|
|
|
|
+ FREEZE (Freeze.class),
|
|
|
|
+ GRAPPLING_HOOK (GrapplingHook.class),
|
|
|
|
+ HARM (Harm.class),
|
|
|
|
+ HARVEST (Harvest.class),
|
|
|
|
+ HEAL (Heal.class),
|
|
|
|
+ HEAL_RAIN (HealRain.class),
|
|
|
|
+ HEARTS (Hearts.class),
|
|
|
|
+ HEART_SEEKER (HeartSeeker.class),
|
|
|
|
+ IMMORTALITY (Immortality.class),
|
|
|
|
+ INVISIBILITY (Invisibility.class),
|
|
|
|
+ JUMP (Jump.class),
|
|
|
|
+ KICK (Kick.class),
|
|
|
|
+ LEAF_COCOON (LeafCocoon.class),
|
|
|
|
+ LOCK_PICK (LockPick.class),
|
|
|
|
+ LUCKY (Lucky.class),
|
|
|
|
+ MUSKET (Musket.class),
|
|
|
|
+ NAIL_DOWN (NailDown.class),
|
|
|
|
+ NAIL_TRAP (NailTrap.class),
|
|
|
|
+ NET_TRAP (NetTrap.class),
|
|
|
|
+ NIGHT (Night.class),
|
|
|
|
+ POISON (Poison.class),
|
|
|
|
+ POISONED_BLADE (PoisonedBlade.class),
|
|
|
|
+ POISON_VOLLEY (PoisonVolley.class),
|
|
|
|
+ POWER (Power.class),
|
|
|
|
+ POWER_ATTACK (PowerAttack.class),
|
|
|
|
+ PULL (Pull.class),
|
|
|
|
+ PUSH (Push.class),
|
|
|
|
+ QUICK_SHOT (QuickShot.class),
|
|
|
|
+ RAIN (Rain.class),
|
|
|
|
+ RAPID_FIRE (RapidFire.class),
|
|
|
|
+ ROOTING (Rooting.class),
|
|
|
|
+ SHADOW (Shadow.class),
|
|
|
|
+ SHADOW_HIT (ShadowHit.class),
|
|
|
|
+ SHADOW_STEP (ShadowStep.class),
|
|
|
|
+ SILENCE (Silence.class),
|
|
|
|
+ SLOWING_SHOT (SlowingShot.class),
|
|
|
|
+ SMOKE_BOMB (SmokeBomb.class),
|
|
|
|
+ SPRINT (Sprint.class),
|
|
|
|
+ STONE (Stone.class),
|
|
|
|
+ SUN (Sun.class),
|
|
|
|
+ TELEPORT_PLAYER (TeleportPlayer.class),
|
|
|
|
+ THOR (Thor.class),
|
|
|
|
+ UNLUCKY (Unlucky.class),
|
|
|
|
+ VINE_TRAP (VineTrap.class),
|
|
|
|
+ WORKBENCH (Workbench.class);
|
|
|
|
|
|
private final ArrayList<Skill> skills;
|
|
private final ArrayList<Skill> skills;
|
|
private final Class<? extends ActiveEffectBase> c;
|
|
private final Class<? extends ActiveEffectBase> c;
|
|
private final boolean active;
|
|
private final boolean active;
|
|
|
|
|
|
- Effect(boolean active, Class<? extends ActiveEffectBase> c)
|
|
|
|
|
|
+ Effect(Class<? extends ActiveEffectBase> c)
|
|
{
|
|
{
|
|
skills = new ArrayList<>();
|
|
skills = new ArrayList<>();
|
|
- this.active = active;
|
|
|
|
|
|
+ this.active = c != null;
|
|
this.c = c;
|
|
this.c = c;
|
|
}
|
|
}
|
|
|
|
|
|
- Effect(boolean active)
|
|
|
|
|
|
+ Effect()
|
|
{
|
|
{
|
|
- this(active, null);
|
|
|
|
|
|
+ this(null);
|
|
}
|
|
}
|
|
|
|
|
|
public void addSkill(Skill s)
|
|
public void addSkill(Skill s)
|