SPIGOT-7011, SPIGOT-7065: Overhaul of structures

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
CraftBukkit/Spigot
2022-07-01 20:41:04 +10:00
parent 8bf76d9868
commit 230282ea44
11 changed files with 397 additions and 57 deletions

View File

@@ -0,0 +1,24 @@
package org.bukkit.craftbukkit.util;
import org.bukkit.Location;
import org.bukkit.generator.structure.Structure;
import org.bukkit.util.StructureSearchResult;
public class CraftStructureSearchResult implements StructureSearchResult {
private final Structure structure;
private final Location location;
public CraftStructureSearchResult(Structure structure, Location location) {
this.structure = structure;
this.location = location;
}
public Structure getStructure() {
return structure;
}
public Location getLocation() {
return location;
}
}