Class EntityUtil

java.lang.Object
com.ranull.graves.util.EntityUtil

public final class EntityUtil extends Object
Utility class for handling entity-related operations.
  • Constructor Details

    • EntityUtil

      public EntityUtil()
  • Method Details

    • hasPermission

      public static boolean hasPermission(org.bukkit.entity.Entity entity, String permission)
      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, or false if an exception occurs.