mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
fix: add missing method in UncheckedWorldLocation (#4112)
Co-authored-by: Alexander Brandes <mc.cache@web.de>
This commit is contained in:
parent
e0cb2949df
commit
c27b838dad
@ -60,6 +60,19 @@ public final class UncheckedWorldLocation extends Location {
|
|||||||
return new UncheckedWorldLocation(world, x, y, z);
|
return new UncheckedWorldLocation(world, x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Construct a new location with yaw and pitch equal to 0
|
||||||
|
*
|
||||||
|
* @param world World
|
||||||
|
* @param loc Coordinates
|
||||||
|
* @return New location
|
||||||
|
* @since TODO
|
||||||
|
*/
|
||||||
|
@DoNotUse
|
||||||
|
public static @NonNull UncheckedWorldLocation at(final @NonNull String world, BlockVector3 loc) {
|
||||||
|
return new UncheckedWorldLocation(world, loc.getX(), loc.getY(), loc.getZ());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@DoNotUse
|
@DoNotUse
|
||||||
public @NonNull String getWorldName() {
|
public @NonNull String getWorldName() {
|
||||||
|
Loading…
Reference in New Issue
Block a user