Class NearbyStructuresResponse.NearbyStructureContainer

java.lang.Object
com.ryandw11.structure.io.NearbyStructuresResponse.NearbyStructureContainer
Enclosing class:
NearbyStructuresResponse

public static class NearbyStructuresResponse.NearbyStructureContainer extends Object
The container to contain the nearby structure results.
  • Constructor Details

    • NearbyStructureContainer

      public NearbyStructureContainer(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull Structure structure, double distance)
      Construct a nearby structure.
      Parameters:
      location - The location of the structure found.
      structure - The structure found.
      distance - The distance from the requested location and the structure found.
  • Method Details

    • getLocation

      public org.bukkit.Location getLocation()
      Get the location of the structure found.
      Returns:
      The location of the structure found.
    • getStructure

      public Structure getStructure()
      Get the structure found.
      Returns:
      The structure found.
    • getDistance

      public double getDistance()
      Get the distance from the requested location and the structure found.
      Returns:
      The distance from the requested location and the structure found.