Search in sources :

Example 16 with MinorPowerPowerStance

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

the class AttackFire 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 17 with MinorPowerPowerStance

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

the class Taunt 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 18 with MinorPowerPowerStance

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

the class DoubleDamage 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)

Example 19 with MinorPowerPowerStance

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

the class Invisibility method applyPowers.

@Override
public void applyPowers(Entity entity) {
    entity.setMetadata(powerMetadata, new FixedMetadataValue(plugin, true));
    ((LivingEntity) entity).addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, Integer.MAX_VALUE, 1));
    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 20 with MinorPowerPowerStance

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

the class InvulnerabilityArrow 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)

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