mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Add missing mobs from 1.13.2+
This commit is contained in:
parent
9d609c2dfe
commit
3a2e932d17
1 changed files with 110 additions and 104 deletions
|
@ -627,46 +627,46 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain<
|
||||||
Iterator<Entity> iterator = entities.iterator();
|
Iterator<Entity> iterator = entities.iterator();
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
Entity entity = iterator.next();
|
Entity entity = iterator.next();
|
||||||
switch (entity.getType()) {
|
switch (entity.getType().toString()) {
|
||||||
case EGG:
|
case "EGG":
|
||||||
case FISHING_HOOK:
|
case "FISHING_HOOK":
|
||||||
case ENDER_SIGNAL:
|
case "ENDER_SIGNAL":
|
||||||
case AREA_EFFECT_CLOUD:
|
case "AREA_EFFECT_CLOUD":
|
||||||
case EXPERIENCE_ORB:
|
case "EXPERIENCE_ORB":
|
||||||
case LEASH_HITCH:
|
case "LEASH_HITCH":
|
||||||
case FIREWORK:
|
case "FIREWORK":
|
||||||
case LIGHTNING:
|
case "LIGHTNING":
|
||||||
case WITHER_SKULL:
|
case "WITHER_SKULL":
|
||||||
case UNKNOWN:
|
case "UNKNOWN":
|
||||||
case PLAYER:
|
case "PLAYER":
|
||||||
// non moving / unmovable
|
// non moving / unmovable
|
||||||
continue;
|
continue;
|
||||||
case THROWN_EXP_BOTTLE:
|
case "THROWN_EXP_BOTTLE":
|
||||||
case SPLASH_POTION:
|
case "SPLASH_POTION":
|
||||||
case SNOWBALL:
|
case "SNOWBALL":
|
||||||
case SHULKER_BULLET:
|
case "SHULKER_BULLET":
|
||||||
case SPECTRAL_ARROW:
|
case "SPECTRAL_ARROW":
|
||||||
case ENDER_PEARL:
|
case "ENDER_PEARL":
|
||||||
case ARROW:
|
case "ARROW":
|
||||||
case LLAMA_SPIT:
|
case "LLAMA_SPIT":
|
||||||
case TRIDENT:
|
case "TRIDENT":
|
||||||
// managed elsewhere | projectile
|
// managed elsewhere | projectile
|
||||||
continue;
|
continue;
|
||||||
case ITEM_FRAME:
|
case "ITEM_FRAME":
|
||||||
case PAINTING:
|
case "PAINTING":
|
||||||
// Not vehicles
|
// Not vehicles
|
||||||
continue;
|
continue;
|
||||||
case ARMOR_STAND:
|
case "ARMOR_STAND":
|
||||||
// Temporarily classify as vehicle
|
// Temporarily classify as vehicle
|
||||||
case MINECART:
|
case "MINECART":
|
||||||
case MINECART_CHEST:
|
case "MINECART_CHEST":
|
||||||
case MINECART_COMMAND:
|
case "MINECART_COMMAND":
|
||||||
case MINECART_FURNACE:
|
case "MINECART_FURNACE":
|
||||||
case MINECART_HOPPER:
|
case "MINECART_HOPPER":
|
||||||
case MINECART_MOB_SPAWNER:
|
case "MINECART_MOB_SPAWNER":
|
||||||
case ENDER_CRYSTAL:
|
case "ENDER_CRYSTAL":
|
||||||
case MINECART_TNT:
|
case "MINECART_TNT":
|
||||||
case BOAT:
|
case "BOAT":
|
||||||
if (Settings.Enabled_Components.KILL_ROAD_VEHICLES) {
|
if (Settings.Enabled_Components.KILL_ROAD_VEHICLES) {
|
||||||
com.plotsquared.core.location.Location location =
|
com.plotsquared.core.location.Location location =
|
||||||
BukkitUtil.getLocation(entity.getLocation());
|
BukkitUtil.getLocation(entity.getLocation());
|
||||||
|
@ -695,10 +695,10 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain<
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
case SMALL_FIREBALL:
|
case "SMALL_FIREBALL":
|
||||||
case FIREBALL:
|
case "FIREBALL":
|
||||||
case DRAGON_FIREBALL:
|
case "DRAGON_FIREBALL":
|
||||||
case DROPPED_ITEM:
|
case "DROPPED_ITEM":
|
||||||
if (Settings.Enabled_Components.KILL_ROAD_ITEMS && plotArea
|
if (Settings.Enabled_Components.KILL_ROAD_ITEMS && plotArea
|
||||||
.getOwnedPlotAbs(BukkitUtil.getLocation(entity.getLocation()))
|
.getOwnedPlotAbs(BukkitUtil.getLocation(entity.getLocation()))
|
||||||
== null) {
|
== null) {
|
||||||
|
@ -706,11 +706,11 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain<
|
||||||
}
|
}
|
||||||
// dropped item
|
// dropped item
|
||||||
continue;
|
continue;
|
||||||
case PRIMED_TNT:
|
case "PRIMED_TNT":
|
||||||
case FALLING_BLOCK:
|
case "FALLING_BLOCK":
|
||||||
// managed elsewhere
|
// managed elsewhere
|
||||||
continue;
|
continue;
|
||||||
case SHULKER:
|
case "SHULKER":
|
||||||
if (Settings.Enabled_Components.KILL_ROAD_MOBS) {
|
if (Settings.Enabled_Components.KILL_ROAD_MOBS) {
|
||||||
LivingEntity livingEntity = (LivingEntity) entity;
|
LivingEntity livingEntity = (LivingEntity) entity;
|
||||||
List<MetadataValue> meta = entity.getMetadata("shulkerPlot");
|
List<MetadataValue> meta = entity.getMetadata("shulkerPlot");
|
||||||
|
@ -758,70 +758,76 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain<
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
case LLAMA:
|
case "ZOMBIFIED_PIGLIN":
|
||||||
case DONKEY:
|
case "LLAMA":
|
||||||
case MULE:
|
case "DONKEY":
|
||||||
case ZOMBIE_HORSE:
|
case "MULE":
|
||||||
case SKELETON_HORSE:
|
case "ZOMBIE_HORSE":
|
||||||
case HUSK:
|
case "SKELETON_HORSE":
|
||||||
case ELDER_GUARDIAN:
|
case "HUSK":
|
||||||
case WITHER_SKELETON:
|
case "ELDER_GUARDIAN":
|
||||||
case STRAY:
|
case "WITHER_SKELETON":
|
||||||
case ZOMBIE_VILLAGER:
|
case "STRAY":
|
||||||
case EVOKER:
|
case "ZOMBIE_VILLAGER":
|
||||||
case EVOKER_FANGS:
|
case "EVOKER":
|
||||||
case VEX:
|
case "EVOKER_FANGS":
|
||||||
case VINDICATOR:
|
case "VEX":
|
||||||
case POLAR_BEAR:
|
case "VINDICATOR":
|
||||||
case BAT:
|
case "POLAR_BEAR":
|
||||||
case BLAZE:
|
case "BAT":
|
||||||
case CAVE_SPIDER:
|
case "BLAZE":
|
||||||
case CHICKEN:
|
case "CAVE_SPIDER":
|
||||||
case COW:
|
case "CHICKEN":
|
||||||
case CREEPER:
|
case "COW":
|
||||||
case ENDERMAN:
|
case "CREEPER":
|
||||||
case ENDERMITE:
|
case "ENDERMAN":
|
||||||
case ENDER_DRAGON:
|
case "ENDERMITE":
|
||||||
case GHAST:
|
case "ENDER_DRAGON":
|
||||||
case GIANT:
|
case "GHAST":
|
||||||
case GUARDIAN:
|
case "GIANT":
|
||||||
case HORSE:
|
case "GUARDIAN":
|
||||||
case IRON_GOLEM:
|
case "HORSE":
|
||||||
case MAGMA_CUBE:
|
case "IRON_GOLEM":
|
||||||
case MUSHROOM_COW:
|
case "MAGMA_CUBE":
|
||||||
case OCELOT:
|
case "MUSHROOM_COW":
|
||||||
case PIG:
|
case "OCELOT":
|
||||||
case RABBIT:
|
case "PIG":
|
||||||
case SHEEP:
|
case "PIG_ZOMBIE":
|
||||||
case SILVERFISH:
|
case "RABBIT":
|
||||||
case SKELETON:
|
case "SHEEP":
|
||||||
case SLIME:
|
case "SILVERFISH":
|
||||||
case SNOWMAN:
|
case "SKELETON":
|
||||||
case SPIDER:
|
case "SLIME":
|
||||||
case SQUID:
|
case "SNOWMAN":
|
||||||
case VILLAGER:
|
case "SPIDER":
|
||||||
case WITCH:
|
case "SQUID":
|
||||||
case WITHER:
|
case "VILLAGER":
|
||||||
case WOLF:
|
case "WITCH":
|
||||||
case ZOMBIE:
|
case "WITHER":
|
||||||
case PARROT:
|
case "WOLF":
|
||||||
case SALMON:
|
case "ZOMBIE":
|
||||||
case DOLPHIN:
|
case "PARROT":
|
||||||
case TROPICAL_FISH:
|
case "SALMON":
|
||||||
case DROWNED:
|
case "DOLPHIN":
|
||||||
case COD:
|
case "TROPICAL_FISH":
|
||||||
case TURTLE:
|
case "DROWNED":
|
||||||
case PUFFERFISH:
|
case "COD":
|
||||||
case PHANTOM:
|
case "TURTLE":
|
||||||
case ILLUSIONER:
|
case "PUFFERFISH":
|
||||||
case CAT:
|
case "PHANTOM":
|
||||||
case PANDA:
|
case "ILLUSIONER":
|
||||||
case FOX:
|
case "CAT":
|
||||||
case PILLAGER:
|
case "PANDA":
|
||||||
case TRADER_LLAMA:
|
case "FOX":
|
||||||
case WANDERING_TRADER:
|
case "PILLAGER":
|
||||||
case RAVAGER:
|
case "TRADER_LLAMA":
|
||||||
//case BEE:
|
case "WANDERING_TRADER":
|
||||||
|
case "RAVAGER":
|
||||||
|
case "BEE":
|
||||||
|
case "HOGLIN":
|
||||||
|
case "PIGLIN":
|
||||||
|
case "ZOGLIN":
|
||||||
|
break;
|
||||||
default: {
|
default: {
|
||||||
if (Settings.Enabled_Components.KILL_ROAD_MOBS) {
|
if (Settings.Enabled_Components.KILL_ROAD_MOBS) {
|
||||||
Location location = entity.getLocation();
|
Location location = entity.getLocation();
|
||||||
|
|
Loading…
Reference in a new issue