mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Reclassify shulker as a hostile mob
This commit is contained in:
parent
6324bb1134
commit
5772af37fe
@ -73,8 +73,8 @@ import org.bukkit.entity.Explosive;
|
|||||||
import org.bukkit.entity.FallingBlock;
|
import org.bukkit.entity.FallingBlock;
|
||||||
import org.bukkit.entity.Firework;
|
import org.bukkit.entity.Firework;
|
||||||
import org.bukkit.entity.Ghast;
|
import org.bukkit.entity.Ghast;
|
||||||
import org.bukkit.entity.Golem;
|
|
||||||
import org.bukkit.entity.Hanging;
|
import org.bukkit.entity.Hanging;
|
||||||
|
import org.bukkit.entity.IronGolem;
|
||||||
import org.bukkit.entity.Item;
|
import org.bukkit.entity.Item;
|
||||||
import org.bukkit.entity.LightningStrike;
|
import org.bukkit.entity.LightningStrike;
|
||||||
import org.bukkit.entity.Monster;
|
import org.bukkit.entity.Monster;
|
||||||
@ -82,7 +82,9 @@ import org.bukkit.entity.NPC;
|
|||||||
import org.bukkit.entity.Phantom;
|
import org.bukkit.entity.Phantom;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.entity.Projectile;
|
import org.bukkit.entity.Projectile;
|
||||||
|
import org.bukkit.entity.Shulker;
|
||||||
import org.bukkit.entity.Slime;
|
import org.bukkit.entity.Slime;
|
||||||
|
import org.bukkit.entity.Snowman;
|
||||||
import org.bukkit.entity.Tameable;
|
import org.bukkit.entity.Tameable;
|
||||||
import org.bukkit.entity.Vehicle;
|
import org.bukkit.entity.Vehicle;
|
||||||
import org.bukkit.entity.WaterMob;
|
import org.bukkit.entity.WaterMob;
|
||||||
@ -575,7 +577,8 @@ public class BukkitUtil extends WorldUtil {
|
|||||||
final Collection<Class<?>> allowedInterfaces = new HashSet<>();
|
final Collection<Class<?>> allowedInterfaces = new HashSet<>();
|
||||||
switch (category) {
|
switch (category) {
|
||||||
case "animal": {
|
case "animal": {
|
||||||
allowedInterfaces.add(Golem.class);
|
allowedInterfaces.add(IronGolem.class);
|
||||||
|
allowedInterfaces.add(Snowman.class);
|
||||||
allowedInterfaces.add(Animals.class);
|
allowedInterfaces.add(Animals.class);
|
||||||
allowedInterfaces.add(WaterMob.class);
|
allowedInterfaces.add(WaterMob.class);
|
||||||
allowedInterfaces.add(Ambient.class);
|
allowedInterfaces.add(Ambient.class);
|
||||||
@ -587,6 +590,7 @@ public class BukkitUtil extends WorldUtil {
|
|||||||
allowedInterfaces.add(Vehicle.class);
|
allowedInterfaces.add(Vehicle.class);
|
||||||
} break;
|
} break;
|
||||||
case "hostile": {
|
case "hostile": {
|
||||||
|
allowedInterfaces.add(Shulker.class);
|
||||||
allowedInterfaces.add(Monster.class);
|
allowedInterfaces.add(Monster.class);
|
||||||
allowedInterfaces.add(Boss.class);
|
allowedInterfaces.add(Boss.class);
|
||||||
allowedInterfaces.add(Slime.class);
|
allowedInterfaces.add(Slime.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user