From 28347102beb9cea0cf3b045963c0460a19a845fa Mon Sep 17 00:00:00 2001 From: Nesaak <52047222+Nesaak@users.noreply.github.com> Date: Sun, 30 Aug 2020 17:43:55 -0400 Subject: [PATCH] Make DimensionType builder public --- src/main/java/net/minestom/server/world/DimensionType.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/world/DimensionType.java b/src/main/java/net/minestom/server/world/DimensionType.java index c8cdd098a..50a26ed60 100644 --- a/src/main/java/net/minestom/server/world/DimensionType.java +++ b/src/main/java/net/minestom/server/world/DimensionType.java @@ -4,6 +4,7 @@ import lombok.AccessLevel; import lombok.Builder; import lombok.Data; import net.minestom.server.utils.NamespaceID; +import org.jetbrains.annotations.NotNull; import org.jglrxavpok.hephaistos.nbt.NBTCompound; import java.util.Optional; @@ -13,7 +14,7 @@ import java.util.concurrent.atomic.AtomicInteger; * https://minecraft.gamepedia.com/Custom_dimension */ @Data -@Builder(builderMethodName = "hiddenBuilder", access = AccessLevel.PRIVATE) +@Builder(builderMethodName = "hiddenBuilder", access = AccessLevel.PUBLIC) public class DimensionType { private static final AtomicInteger idCounter = new AtomicInteger(0); @@ -34,6 +35,7 @@ public class DimensionType { .build(); private final int id = idCounter.getAndIncrement(); + @NotNull private final NamespaceID name; private final boolean natural; private final float ambientLight;