use of org.bukkit.metadata.FixedMetadataValue in project EliteMobs by MagmaGuy.
the class AttackPush method applyPowers.
@Override
public void applyPowers(Entity entity) {
entity.setMetadata(powerMetadata, new FixedMetadataValue(plugin, true));
MinorPowerPowerStance minorPowerPowerStance = new MinorPowerPowerStance();
minorPowerPowerStance.itemEffect(entity);
}
use of org.bukkit.metadata.FixedMetadataValue in project EliteMobs by MagmaGuy.
the class AttackWeakness method applyPowers.
@Override
public void applyPowers(Entity entity) {
entity.setMetadata(powerMetadata, new FixedMetadataValue(plugin, true));
MinorPowerPowerStance minorPowerPowerStance = new MinorPowerPowerStance();
minorPowerPowerStance.itemEffect(entity);
}
use of org.bukkit.metadata.FixedMetadataValue in project EliteMobs by MagmaGuy.
the class AttackFireball method applyPowers.
@Override
public void applyPowers(Entity entity) {
entity.setMetadata(powerMetadata, new FixedMetadataValue(plugin, true));
MinorPowerPowerStance minorPowerPowerStance = new MinorPowerPowerStance();
minorPowerPowerStance.itemEffect(entity);
}
use of org.bukkit.metadata.FixedMetadataValue in project EliteMobs by MagmaGuy.
the class AttackConfusing method applyPowers.
@Override
public void applyPowers(Entity entity) {
entity.setMetadata(powerMetadata, new FixedMetadataValue(plugin, true));
MinorPowerPowerStance minorPowerPowerStance = new MinorPowerPowerStance();
// minorPowerPowerStance.attackConfusing(entity);
}
use of org.bukkit.metadata.FixedMetadataValue in project EliteMobs by MagmaGuy.
the class AttackFreeze method iceEffectApplier.
public void iceEffectApplier(int counter, Entity damagee, Block block) {
if (counter == 0) {
damagee.setMetadata(MetadataHandler.FROZEN, new FixedMetadataValue(plugin, true));
damagee.setMetadata(MetadataHandler.FROZEN_COOLDOWN, new FixedMetadataValue(plugin, true));
block.setType(Material.PACKED_ICE);
block.setMetadata("TemporaryBlock", new FixedMetadataValue(plugin, true));
if (damagee instanceof Player) {
Player player = (Player) damagee;
player.sendTitle("", "Frozen!");
}
}
if (counter == 40) {
damagee.removeMetadata(MetadataHandler.FROZEN, plugin);
block.setType(Material.AIR);
block.removeMetadata("TemporaryBlock", plugin);
}
if (counter == 20 * 7) {
damagee.removeMetadata(MetadataHandler.FROZEN_COOLDOWN, plugin);
Bukkit.getScheduler().cancelTask(processID);
}
}
Aggregations