SPIGOT-7011, SPIGOT-7065: Overhaul of structures

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
Bukkit/Spigot
2022-07-01 20:41:02 +10:00
parent 515ae6f2cc
commit 24ea881685
11 changed files with 289 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
package org.bukkit.util;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.generator.structure.Structure;
import org.bukkit.generator.structure.StructureType;
import org.jetbrains.annotations.NotNull;
/**
* Holds the result of searching for a structure.
*
* @see World#locateNearestStructure(Location, Structure, int, boolean)
* @see World#locateNearestStructure(Location, StructureType, int, boolean)
*/
public interface StructureSearchResult {
/**
* Return the structure which was found.
*
* @return the found structure.
*/
@NotNull
Structure getStructure();
/**
* Return the location of the structure.
*
* @return the location the structure was found.
*/
@NotNull
Location getLocation();
}