Search in sources :

Example 1 with MinorPowerPowerStance

use of com.magmaguy.elitemobs.powerstances.MinorPowerPowerStance in project EliteMobs by MagmaGuy.

the class AttackWeb method applyPowers.

@Override
public void applyPowers(Entity entity) {
    entity.setMetadata(powerMetadata, new FixedMetadataValue(plugin, true));
    MinorPowerPowerStance minorPowerPowerStance = new MinorPowerPowerStance();
    minorPowerPowerStance.itemEffect(entity);
}
Also used : FixedMetadataValue(org.bukkit.metadata.FixedMetadataValue) MinorPowerPowerStance(com.magmaguy.elitemobs.powerstances.MinorPowerPowerStance)

Example 2 with MinorPowerPowerStance

use of com.magmaguy.elitemobs.powerstances.MinorPowerPowerStance in project EliteMobs by MagmaGuy.

the class BonusLoot method applyPowers.

@Override
public void applyPowers(Entity entity) {
    entity.setMetadata(powerMetadata, new FixedMetadataValue(plugin, true));
    MinorPowerPowerStance minorPowerPowerStance = new MinorPowerPowerStance();
    minorPowerPowerStance.itemEffect(entity);
}
Also used : FixedMetadataValue(org.bukkit.metadata.FixedMetadataValue) MinorPowerPowerStance(com.magmaguy.elitemobs.powerstances.MinorPowerPowerStance)

Example 3 with MinorPowerPowerStance

use of com.magmaguy.elitemobs.powerstances.MinorPowerPowerStance in project EliteMobs by MagmaGuy.

the class InvulnerabilityFallDamage method applyPowers.

@Override
public void applyPowers(Entity entity) {
    entity.setMetadata(powerMetadata, new FixedMetadataValue(plugin, true));
    MinorPowerPowerStance minorPowerPowerStance = new MinorPowerPowerStance();
    minorPowerPowerStance.itemEffect(entity);
}
Also used : FixedMetadataValue(org.bukkit.metadata.FixedMetadataValue) MinorPowerPowerStance(com.magmaguy.elitemobs.powerstances.MinorPowerPowerStance)

Example 4 with MinorPowerPowerStance

use of com.magmaguy.elitemobs.powerstances.MinorPowerPowerStance in project EliteMobs by MagmaGuy.

the class MovementSpeed method applyPowers.

@Override
public void applyPowers(Entity entity) {
    entity.setMetadata(powerMetadata, new FixedMetadataValue(plugin, true));
    ((LivingEntity) entity).addPotionEffect(new PotionEffect(PotionEffectType.SPEED, Integer.MAX_VALUE, 2));
    MinorPowerPowerStance minorPowerPowerStance = new MinorPowerPowerStance();
    minorPowerPowerStance.itemEffect(entity);
}
Also used : LivingEntity(org.bukkit.entity.LivingEntity) PotionEffect(org.bukkit.potion.PotionEffect) FixedMetadataValue(org.bukkit.metadata.FixedMetadataValue) MinorPowerPowerStance(com.magmaguy.elitemobs.powerstances.MinorPowerPowerStance)

Example 5 with MinorPowerPowerStance

use of com.magmaguy.elitemobs.powerstances.MinorPowerPowerStance in project EliteMobs by MagmaGuy.

the class DoubleHealth method applyPowers.

@Override
public void applyPowers(Entity entity) {
    if (!(entity instanceof IronGolem)) {
        entity.setMetadata(powerMetadata, new FixedMetadataValue(plugin, true));
        MinorPowerPowerStance minorPowerPowerStance = new MinorPowerPowerStance();
        minorPowerPowerStance.itemEffect(entity);
    }
}
Also used : FixedMetadataValue(org.bukkit.metadata.FixedMetadataValue) MinorPowerPowerStance(com.magmaguy.elitemobs.powerstances.MinorPowerPowerStance) IronGolem(org.bukkit.entity.IronGolem)

Aggregations

MinorPowerPowerStance (com.magmaguy.elitemobs.powerstances.MinorPowerPowerStance)23 FixedMetadataValue (org.bukkit.metadata.FixedMetadataValue)22 IronGolem (org.bukkit.entity.IronGolem)2 LivingEntity (org.bukkit.entity.LivingEntity)2 PotionEffect (org.bukkit.potion.PotionEffect)2 ChunkUnloadMetadataPurge (com.magmaguy.elitemobs.collateralminecraftchanges.ChunkUnloadMetadataPurge)1 PreventCreeperPassiveEntityDamage (com.magmaguy.elitemobs.collateralminecraftchanges.PreventCreeperPassiveEntityDamage)1 CommandHandler (com.magmaguy.elitemobs.commands.CommandHandler)1 LootGUI (com.magmaguy.elitemobs.commands.LootGUI)1 ConfigValues (com.magmaguy.elitemobs.config.ConfigValues)1 LootCustomConfig (com.magmaguy.elitemobs.config.LootCustomConfig)1 MobPowersCustomConfig (com.magmaguy.elitemobs.config.MobPowersCustomConfig)1 TranslationCustomConfig (com.magmaguy.elitemobs.config.TranslationCustomConfig)1 EliteDropsHandler (com.magmaguy.elitemobs.elitedrops.EliteDropsHandler)1 DamageHandler (com.magmaguy.elitemobs.mobcustomizer.DamageHandler)1 DropsHandler (com.magmaguy.elitemobs.mobcustomizer.DropsHandler)1 MobScanner (com.magmaguy.elitemobs.mobscanner.MobScanner)1 NaturalMobMetadataAssigner (com.magmaguy.elitemobs.naturalmobspawner.NaturalMobMetadataAssigner)1 NaturalMobSpawner (com.magmaguy.elitemobs.naturalmobspawner.NaturalMobSpawner)1 MajorPowerPowerStance (com.magmaguy.elitemobs.powerstances.MajorPowerPowerStance)1