mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Replace CachedChange class with record
This commit is contained in:
parent
e5cbdec67e
commit
ca5640e89e
@ -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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user