SPIGOT-5211: Add Raid API

By: anhcraft <admin@anhcraft.dev>
This commit is contained in:
Bukkit/Spigot
2019-08-12 18:09:35 +07:00
parent 2ef8482885
commit 71802c602b
7 changed files with 409 additions and 0 deletions

View File

@@ -1961,6 +1961,24 @@ public interface World extends PluginMessageRecipient, Metadatable {
@Nullable
public Location locateNearestStructure(@NotNull Location origin, @NotNull StructureType structureType, int radius, boolean findUnexplored);
/**
* Finds the nearest raid close to the given location.
*
* @param location the origin location
* @param radius the radius
* @return the closest {@link Raid}, or null if no raids were found
*/
@Nullable
public Raid locateNearestRaid(@NotNull Location location, int radius);
/**
* Gets all raids that are going on over this world.
*
* @return the list of all active raids
*/
@NotNull
public List<Raid> getRaids();
/**
* Represents various map environment types that a world may be
*/