mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-20 23:21:24 +01:00
Merge pull request #43 from Nesaak/master
Make DimensionType builder public
This commit is contained in:
commit
e779f1bbce
@ -4,6 +4,7 @@ import lombok.AccessLevel;
|
|||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import net.minestom.server.utils.NamespaceID;
|
import net.minestom.server.utils.NamespaceID;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jglrxavpok.hephaistos.nbt.NBTCompound;
|
import org.jglrxavpok.hephaistos.nbt.NBTCompound;
|
||||||
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
@ -13,7 +14,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||||||
* https://minecraft.gamepedia.com/Custom_dimension
|
* https://minecraft.gamepedia.com/Custom_dimension
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Builder(builderMethodName = "hiddenBuilder", access = AccessLevel.PRIVATE)
|
@Builder(builderMethodName = "hiddenBuilder", access = AccessLevel.PUBLIC)
|
||||||
public class DimensionType {
|
public class DimensionType {
|
||||||
|
|
||||||
private static final AtomicInteger idCounter = new AtomicInteger(0);
|
private static final AtomicInteger idCounter = new AtomicInteger(0);
|
||||||
@ -34,6 +35,7 @@ public class DimensionType {
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
private final int id = idCounter.getAndIncrement();
|
private final int id = idCounter.getAndIncrement();
|
||||||
|
@NotNull
|
||||||
private final NamespaceID name;
|
private final NamespaceID name;
|
||||||
private final boolean natural;
|
private final boolean natural;
|
||||||
private final float ambientLight;
|
private final float ambientLight;
|
||||||
|
Loading…
Reference in New Issue
Block a user