Archived
0

убираем лишнее

This commit is contained in:
2019-01-29 22:14:19 +03:00
parent 00d536710a
commit 329f9ac142
4 changed files with 0 additions and 169 deletions

View File

@@ -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();
}
}