Interface SecurityVillagersAPI


public interface SecurityVillagersAPI
  • Method Summary

    Modifier and Type
    Method
    Description
    getEntityType​(org.bukkit.entity.Entity entity)
    Get the entity type of SecurityVillagers for the given entity
    Get a list of protected entities.
    @Nullable org.bukkit.entity.Entity
    getSelectedEntity​(org.bukkit.entity.Player player)
    Is the entity selected by the given player?
    boolean
    isEntityDamageProtected​(@NotNull org.bukkit.entity.Entity entity)
    Is the entity protected by SecurityVillagers?
    void
    Reload SecurityVillagers configuration files
  • Method Details

    • reloadPlugin

      void reloadPlugin()
      Reload SecurityVillagers configuration files
    • getEntityType

      @Nullable @Nullable ProtectedEntityType getEntityType(org.bukkit.entity.Entity entity)
      Get the entity type of SecurityVillagers for the given entity
      Parameters:
      entity - the entity
      Returns:
      the ProtectedEntityType
    • isEntityDamageProtected

      boolean isEntityDamageProtected(@NotNull @NotNull org.bukkit.entity.Entity entity)
      Is the entity protected by SecurityVillagers?
      Parameters:
      entity - the entity
      Returns:
      true if protected
    • getSelectedEntity

      @Nullable @Nullable org.bukkit.entity.Entity getSelectedEntity(org.bukkit.entity.Player player)
      Is the entity selected by the given player?
      Parameters:
      player - the player
      Returns:
      the entity selected or null
    • getProtectedEntities

      List<UUID> getProtectedEntities()
      Get a list of protected entities. Used only if custom protection is enabled.
      Returns:
      the list of protected entities