Archived
0

World info saving

This commit is contained in:
Forwolk
2018-08-02 13:14:59 +03:00
parent a9e6378101
commit 94e32a6921
9 changed files with 112 additions and 16 deletions

View File

@@ -8,6 +8,8 @@ import com.flowpowered.nbt.Tag;
import lombok.Getter;
import lombok.Setter;
import mc.core.Location;
import mc.core.WarpPosition;
import mc.core.player.Look;
import mc.core.world.*;
import java.util.UUID;
@@ -17,10 +19,12 @@ public class FlatWorld implements World {
@Getter@Setter
private UUID worldId = UUID.fromString("00000000-0000-0000-C000-000000000046");
@Getter@Setter
private String name;
@Getter
@Setter
private Location spawn = new Location(0, 6, 0);
private WarpPosition spawn = new WarpPosition(new Location(0, 6, 0), new Look(0, 0));
private Chunk chunk = new SimpleChunk();
@Override