]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blob - src/main/java/com/irtimaled/bbor/common/events/WorldLoaded.java
33f44e98fb493dcb5b495befc6f8687b3bdde670
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / common / events / WorldLoaded.java
1 package com.irtimaled.bbor.common.events;
2
3 import net.minecraft.world.ServerWorld;
4 import net.minecraft.world.storage.WorldInfo;
5
6 public class WorldLoaded {
7     private final int dimensionId;
8     private final long seed;
9     private final int spawnX;
10     private final int spawnZ;
11
12     public WorldLoaded(ServerWorld world) {
13         WorldInfo info = world.getWorldInfo();
14         this.dimensionId = world.getDimension().getType().getId();
15         this.seed = info.getSeed();
16         this.spawnX = info.getSpawnX();
17         this.spawnZ = info.getSpawnZ();
18     }
19
20     public int getDimensionId() {
21         return dimensionId;
22     }
23
24     public long getSeed() {
25         return seed;
26     }
27
28     public int getSpawnX() {
29         return spawnX;
30     }
31
32     public int getSpawnZ() {
33         return spawnZ;
34     }
35 }