Add /rtp with normal distribution, economy hook, home limits, new tests, locales

This commit is contained in:
William committed 2022-08-19 19:44:07 +01:00
1 parent 0bb33c6f1e
commit 08e6569027
39 files changed
+1128 -188

No files matched your search

@@ -37,6 +37,15 @@ public class Location {
*/
public World world;
public Location(double x, double y, double z, @NotNull World world) {
this.x = x;
this.y = y;
this.z = z;
this.yaw = 0;
this.pitch = 0;
this.world = world;
}
public Location(double x, double y, double z, float yaw, float pitch,
@NotNull World world) {
this.x = x;
@@ -1,6 +1,7 @@
package net.william278.huskhomes.position;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.UUID;
@@ -19,12 +20,42 @@ public class World {
*/
public UUID uuid;
/**
* Environment of the world ({@link Environment#OVERWORLD}, {@link Environment#NETHER}, {@link Environment#THE_END},
* or {@link Environment#CUSTOM})
*/
@Nullable
public Environment environment;
/**
* Spawn location of the world
*/
@Nullable
public Location spawn;
public World(@NotNull String name, @NotNull UUID uuid) {
this.name = name;
this.uuid = uuid;
}
public World(@NotNull String name, @NotNull UUID uuid, @Nullable Environment environment, @Nullable Location spawn) {
this.name = name;
this.uuid = uuid;
this.environment = environment;
this.spawn = spawn;
}
public World() {
}
/**
* Identifies the environment of the world
*/
public enum Environment {
OVERWORLD,
NETHER,
THE_END,
CUSTOM
}
}