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