убираем лишнее
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
package mc.world.anvil;
|
||||
|
||||
import com.flowpowered.nbt.*;
|
||||
import lombok.Getter;
|
||||
import lombok.ToString;
|
||||
import mc.core.world.block.BlockLocation;
|
||||
|
||||
@Getter
|
||||
@ToString
|
||||
class LevelInfo {
|
||||
private long seed;
|
||||
private BlockLocation spawn;
|
||||
private int version;
|
||||
|
||||
LevelInfo(CompoundTag levelDatTag) {
|
||||
CompoundMap dataMapTag = ((CompoundTag) levelDatTag.getValue().get("Data")).getValue();
|
||||
|
||||
seed = ((LongTag) dataMapTag.get("RandomSeed")).getValue();
|
||||
spawn = new BlockLocation(
|
||||
((IntTag) dataMapTag.get("SpawnX")).getValue(),
|
||||
((IntTag) dataMapTag.get("SpawnY")).getValue(),
|
||||
((IntTag) dataMapTag.get("SpawnZ")).getValue()
|
||||
);
|
||||
version = ((IntTag) dataMapTag.get("version")).getValue();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user