MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / saveLevel

Method saveLevel

src/main/java/net/minecraft/world/WorldServer.java:929–943  ·  view source on GitHub ↗

Saves the chunks to disk.

()

Source from the content-addressed store, hash-verified

927 * Saves the chunks to disk.
928 */
929 protected void saveLevel() throws MinecraftException
930 {
931 this.checkSessionLock();
932 this.worldInfo.setBorderSize(this.getWorldBorder().getDiameter());
933 this.worldInfo.getBorderCenterX(this.getWorldBorder().getCenterX());
934 this.worldInfo.getBorderCenterZ(this.getWorldBorder().getCenterZ());
935 this.worldInfo.setBorderSafeZone(this.getWorldBorder().getDamageBuffer());
936 this.worldInfo.setBorderDamagePerBlock(this.getWorldBorder().getDamageAmount());
937 this.worldInfo.setBorderWarningDistance(this.getWorldBorder().getWarningDistance());
938 this.worldInfo.setBorderWarningTime(this.getWorldBorder().getWarningTime());
939 this.worldInfo.setBorderLerpTarget(this.getWorldBorder().getTargetSize());
940 this.worldInfo.setBorderLerpTime(this.getWorldBorder().getTimeUntilTarget());
941 this.saveHandler.saveWorldInfoWithPlayer(this.worldInfo, this.mcServer.getConfigurationManager().getHostPlayerData());
942 this.mapStorage.saveAllData();
943 }
944
945 protected void onEntityAdded(Entity entityIn)
946 {

Callers 1

saveAllChunksMethod · 0.95

Calls 15

setBorderSizeMethod · 0.80
getDiameterMethod · 0.80
getBorderCenterXMethod · 0.80
getBorderCenterZMethod · 0.80
setBorderSafeZoneMethod · 0.80
getDamageBufferMethod · 0.80
getWarningDistanceMethod · 0.80
setBorderWarningTimeMethod · 0.80
getWarningTimeMethod · 0.80
setBorderLerpTargetMethod · 0.80

Tested by

no test coverage detected