Class EntityUtils

java.lang.Object
ch.njol.skript.bukkitutil.EntityUtils

public class EntityUtils extends Object
Utility class for quick Entity methods
  • Constructor Details

    • EntityUtils

      public EntityUtils()
  • Method Details

    • teleport

      public static void teleport(Entity entity, Location location)
      Teleports the given entity to the given location. Teleports to the given location in the entity's world if the location's world is null.
    • canSpawn

      public static boolean canSpawn(Object entityType, World world)
      Check if an EntityType can spawn in a world
      This may be due to a Bukkit restriction or a Minecraft FeatureFlag
      Parameters:
      entityType - EntityType to check for spawning
      world - World to check if it can spawn
      Returns:
      True if the type can spawn