Package com.ryandw11.structure.io
Class NearbyStructuresResponse.NearbyStructureContainer
java.lang.Object
com.ryandw11.structure.io.NearbyStructuresResponse.NearbyStructureContainer
- Enclosing class:
- NearbyStructuresResponse
The container to contain the nearby structure results.
-
Constructor Summary
ConstructorsConstructorDescriptionNearbyStructureContainer(@NotNull org.bukkit.Location location, @NotNull Structure structure, double distance)Construct a nearby structure. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the distance from the requested location and the structure found.org.bukkit.LocationGet the location of the structure found.Get the structure found.
-
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
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.
-