@Override public void removeMetadata(String arg0, Plugin arg1) { base.removeMetadata(arg0, arg1); }
public void removeMetadata(String arg0, Plugin arg1) { entity.removeMetadata(arg0, arg1); }
@Override public void remove(Entity entity) { entity.removeMetadata("MagicBlockList", plugin); if (entities != null) { entities.remove(entity); } UUID entityId = entity.getUniqueId(); if (modifiedEntities != null) { modifiedEntities.remove(entityId); } modifiedTime = System.currentTimeMillis(); }
@Override public void finishEffects() { super.finishEffects(); if (entity != null) { if (plugin != null) { entity.removeMetadata("notarget", plugin); } entity.remove(); entity = null; } } }
public static void setUndoList(Plugin plugin, Entity entity, com.elmakers.mine.bukkit.api.block.UndoList list) { if (entity != null) { if (list != null) { entity.setMetadata("MagicBlockList", new FixedMetadataValue(plugin, list)); } else { entity.removeMetadata("MagicBlockList", plugin); } } }
@Override public void remove(String key) { super.remove(key); if (getEntity() != null) { getEntity().removeMetadata(key, CitizensAPI.getPlugin()); } }
@Override public void finish(CastContext context) { if (mount != null) { if (noTarget) { mount.removeMetadata("notarget", context.getPlugin()); } mount.eject(); mount = null; } if (noTargetPlayer) { context.getEntity().removeMetadata("notarget", context.getPlugin()); } Entity mountedEntity = context.getEntity(); if (warningEffectsApplied && warningEffects != null && mountedEntity != null && mountedEntity instanceof LivingEntity) { for (PotionEffect effect : warningEffects) { ((LivingEntity)mountedEntity).removePotionEffect(effect.getType()); } } if (ridingEffects != null && mountedEntity != null && mountedEntity instanceof LivingEntity) { for (PotionEffect effect : ridingEffects) { ((LivingEntity)mountedEntity).removePotionEffect(effect.getType()); } } }
event.setDroppedExp(0); event.getDrops().clear(); entity.removeMetadata("nodrops", controller.getPlugin()); } else { UndoList pendingUndo = controller.getEntityUndo(entity);
entity.removeMetadata("track", context.getPlugin()); entity.removeMetadata("damaged", context.getPlugin()); entity.removeMetadata("hit", context.getPlugin()); entity.remove(); entity.removeMetadata("track", plugin); if (targetEntity == null) { context.getMage().sendDebugMessage(ChatColor.GRAY + "Projectile missed", 4); context.getMage().sendDebugMessage(ChatColor.GREEN + "Projectile hit " + ChatColor.GOLD + targetEntity.getType()); entity.removeMetadata("hit", plugin); Location sourceLocation = entity.getLocation();
mountEntity.removeMetadata("notarget", plugin); mountEntity.removeMetadata("broom", plugin); CompatibilityUtils.setInvulnerable(mountEntity, false); if (mountEntity instanceof LivingEntity) {
entity.removeMetadata("LibsRabbitHop", LibsDisguises.getInstance()); entity.setMetadata("LibsRabbitHop", new FixedMetadataValue(LibsDisguises.getInstance(), System.currentTimeMillis()));
case NORTH: { if (n instanceof LivingEntity && !(n instanceof ArmorStand) && !(n instanceof Player) && n.getLocation().getZ() < b.getZ()) { if (n.hasMetadata("android_killer")) n.removeMetadata("android_killer", SlimefunStartup.instance); n.setMetadata("android_killer", new FixedMetadataValue(SlimefunStartup.instance, new AndroidObject(this, b))); if (n.hasMetadata("android_killer")) n.removeMetadata("android_killer", SlimefunStartup.instance); n.setMetadata("android_killer", new FixedMetadataValue(SlimefunStartup.instance, new AndroidObject(this, b))); if (n.hasMetadata("android_killer")) n.removeMetadata("android_killer", SlimefunStartup.instance); n.setMetadata("android_killer", new FixedMetadataValue(SlimefunStartup.instance, new AndroidObject(this, b))); if (n.hasMetadata("android_killer")) n.removeMetadata("android_killer", SlimefunStartup.instance); n.setMetadata("android_killer", new FixedMetadataValue(SlimefunStartup.instance, new AndroidObject(this, b))); case NORTH: { if (n instanceof LivingEntity && !(n instanceof ArmorStand) && !(n instanceof Player) && n.getLocation().getZ() < b.getZ()) { if (n.hasMetadata("android_killer")) n.removeMetadata("android_killer", SlimefunStartup.instance); n.setMetadata("android_killer", new FixedMetadataValue(SlimefunStartup.instance, new AndroidObject(this, b))); if (n.hasMetadata("android_killer")) n.removeMetadata("android_killer", SlimefunStartup.instance); n.setMetadata("android_killer", new FixedMetadataValue(SlimefunStartup.instance, new AndroidObject(this, b))); if (n.hasMetadata("android_killer")) n.removeMetadata("android_killer", SlimefunStartup.instance); n.setMetadata("android_killer", new FixedMetadataValue(SlimefunStartup.instance, new AndroidObject(this, b))); if (n.hasMetadata("android_killer")) n.removeMetadata("android_killer", SlimefunStartup.instance); n.setMetadata("android_killer", new FixedMetadataValue(SlimefunStartup.instance, new AndroidObject(this, b))); case NORTH: {