Package com.ranull.graves.util
Class EntityUtil
java.lang.Object
com.ranull.graves.util.EntityUtil
Utility class for handling entity-related operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasPermission
(org.bukkit.entity.Entity entity, String permission) Checks if an entity has a specific permission.
-
Constructor Details
-
EntityUtil
public EntityUtil()
-
-
Method Details
-
hasPermission
Checks if an entity has a specific permission.- Parameters:
entity
- The entity to check.permission
- The permission to check for.- Returns:
true
if the entity has the specified permission,true
if the method is not found, orfalse
if an exception occurs.
-