Interface WorldPurger
-
- All Known Implementing Classes:
SimpleWorldPurger
public interface WorldPurgerUsed to remove animals from worlds that don't belong there.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpurgeWorld(MultiverseWorld world)Convenience method forpurgeWorld(MultiverseWorld, java.util.List, boolean, boolean)that takes the settings from the world-config.voidpurgeWorld(MultiverseWorld mvworld, java.util.List<java.lang.String> thingsToKill, boolean negateAnimals, boolean negateMonsters)Clear all animals/monsters that do not belong to a world according to the config.voidpurgeWorld(MultiverseWorld mvworld, java.util.List<java.lang.String> thingsToKill, boolean negateAnimals, boolean negateMonsters, org.bukkit.command.CommandSender sender)Clear all animals/monsters that do not belong to a world according to the config.voidpurgeWorlds(java.util.List<MultiverseWorld> worlds)Synchronizes the given worlds with their settings.booleanshouldWeKillThisCreature(MultiverseWorld w, org.bukkit.entity.Entity e)Determines whether the specified creature should be killed and automatically reads the params from a world object.booleanshouldWeKillThisCreature(org.bukkit.entity.Entity e, java.util.List<java.lang.String> thingsToKill, boolean negateAnimals, boolean negateMonsters)Determines whether the specified creature should be killed.
-
-
-
Method Detail
-
purgeWorlds
void purgeWorlds(java.util.List<MultiverseWorld> worlds)
Synchronizes the given worlds with their settings.- Parameters:
worlds- A list ofMultiverseWorld
-
purgeWorld
void purgeWorld(MultiverseWorld world)
Convenience method forpurgeWorld(MultiverseWorld, java.util.List, boolean, boolean)that takes the settings from the world-config.- Parameters:
world- TheMultiverseWorld.
-
purgeWorld
void purgeWorld(MultiverseWorld mvworld, java.util.List<java.lang.String> thingsToKill, boolean negateAnimals, boolean negateMonsters)
Clear all animals/monsters that do not belong to a world according to the config.- Parameters:
mvworld- TheMultiverseWorld.thingsToKill- AListof animals/monsters to be killed.negateAnimals- Whether the monsters in the list should be negated.negateMonsters- Whether the animals in the list should be negated.
-
purgeWorld
void purgeWorld(MultiverseWorld mvworld, java.util.List<java.lang.String> thingsToKill, boolean negateAnimals, boolean negateMonsters, org.bukkit.command.CommandSender sender)
Clear all animals/monsters that do not belong to a world according to the config.- Parameters:
mvworld- TheMultiverseWorld.thingsToKill- AListof animals/monsters to be killed.negateAnimals- Whether the monsters in the list should be negated.negateMonsters- Whether the animals in the list should be negated.sender- TheCommandSenderthat initiated the action. He will/should be notified.
-
shouldWeKillThisCreature
boolean shouldWeKillThisCreature(org.bukkit.entity.Entity e, java.util.List<java.lang.String> thingsToKill, boolean negateAnimals, boolean negateMonsters)Determines whether the specified creature should be killed.- Parameters:
e- The creature.thingsToKill- AListof animals/monsters to be killed.negateAnimals- Whether the monsters in the list should be negated.negateMonsters- Whether the animals in the list should be negated.- Returns:
trueif the creature should be killed, otherwisefalse.
-
shouldWeKillThisCreature
boolean shouldWeKillThisCreature(MultiverseWorld w, org.bukkit.entity.Entity e)
Determines whether the specified creature should be killed and automatically reads the params from a world object.- Parameters:
w- The world.e- The creature.- Returns:
trueif the creature should be killed, otherwisefalse.
-
-