Package ch.njol.skript.bukkitutil
Class EntityUtils
java.lang.Object
ch.njol.skript.bukkitutil.EntityUtils
Utility class for quick
Entity
methods-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Check if an EntityType can spawn in a world
This may be due to a Bukkit restriction or a Minecraft FeatureFlagstatic void
Teleports the given entity to the given location.
-
Constructor Details
-
EntityUtils
public EntityUtils()
-
-
Method Details
-
teleport
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
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 spawningworld
- World to check if it can spawn- Returns:
- True if the type can spawn
-