Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
if (this.spawnChunk != null)
{
par1NBTTagCompound.setInteger("SpawnX", this.spawnChunk.posX);
par1NBTTagCompound.setInteger("SpawnY", this.spawnChunk.posY);
par1NBTTagCompound.setInteger("SpawnZ", this.spawnChunk.posZ);
par1NBTTagCompound.setBoolean("SpawnForced", this.spawnForced);
}
NBTTagList spawnlist = new NBTTagList();
for (Entry<Integer, ChunkCoordinates> entry : this.spawnChunkMap.entrySet()) {
NBTTagCompound spawndata = new NBTTagCompound();
ChunkCoordinates spawn = entry.getValue();
if (spawn == null) continue;
Boolean forced = spawnForcedMap.get(entry.getKey());
if (forced == null) forced = false;
spawndata.setInteger("Dim", entry.getKey());
spawndata.setInteger("SpawnX", spawn.posX);
spawndata.setInteger("SpawnY", spawn.posY);
spawndata.setInteger("SpawnZ", spawn.posZ);
spawndata.setBoolean("SpawnForced", forced);
spawnlist.appendTag(spawndata);
}
par1NBTTagCompound.setTag("Spawns", spawnlist);