Replace CachedChange class with record

Dieser Commit ist enthalten in:
dordsor21 2021-12-29 16:16:23 +00:00
Ursprung e5cbdec67e
Commit ca5640e89e
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B
2 geänderte Dateien mit 10 neuen und 30 gelöschten Zeilen

Datei anzeigen

@ -275,21 +275,11 @@ public class PaperweightFaweWorldNativeAccess implements WorldNativeAccess<Level
cachedChunksToSend.clear(); cachedChunksToSend.clear();
} }
private static final class CachedChange { private static final record CachedChange(
LevelChunk levelChunk,
private final LevelChunk levelChunk; BlockPos blockPos,
private final BlockPos blockPos; net.minecraft.world.level.block.state.BlockState blockState
private final net.minecraft.world.level.block.state.BlockState blockState; ) {
private CachedChange(
LevelChunk levelChunk,
BlockPos blockPos,
net.minecraft.world.level.block.state.BlockState blockState
) {
this.levelChunk = levelChunk;
this.blockPos = blockPos;
this.blockState = blockState;
}
} }

Datei anzeigen

@ -275,21 +275,11 @@ public class PaperweightFaweWorldNativeAccess implements WorldNativeAccess<Level
cachedChunksToSend.clear(); cachedChunksToSend.clear();
} }
private static final class CachedChange { private static final record CachedChange(
LevelChunk levelChunk,
private final LevelChunk levelChunk; BlockPos blockPos,
private final BlockPos blockPos; net.minecraft.world.level.block.state.BlockState blockState
private final net.minecraft.world.level.block.state.BlockState blockState; ) {
private CachedChange(
LevelChunk levelChunk,
BlockPos blockPos,
net.minecraft.world.level.block.state.BlockState blockState
) {
this.levelChunk = levelChunk;
this.blockPos = blockPos;
this.blockState = blockState;
}
} }