net/minecraft/server/level/GenerationChunkHolder.java --- Java
37                                                                         37 
38    public GenerationChunkHolder(ChunkPos $$0) {                         38    public GenerationChunkHolder(ChunkPos $$0) {
39       this.pos = $$0;                                                   39       this.pos = $$0;
40       if ($$0.getChessboardDistance(ChunkPos.ZERO) > ChunkPos.MAX_COORD 40       if (!$$0.isValid()) {
.. INATE_VALUE) {                                                          .. 
41          throw new IllegalStateException("Trying to create chunk out of 41          throw new IllegalStateException("Trying to create chunk out of
..  reasonable bounds: " + $$0);                                           ..  reasonable bounds: " + $$0);
42       }                                                                 42       }
43    }                                                                    43    }

net/minecraft/world/level/ChunkPos.java --- 1/3 --- Java
11 import net.minecraft.core.SectionPos;                                   11 import net.minecraft.core.SectionPos;
12 import net.minecraft.network.FriendlyByteBuf;                           12 import net.minecraft.network.FriendlyByteBuf;
13 import net.minecraft.network.codec.StreamCodec;                         13 import net.minecraft.network.codec.StreamCodec;
..                                                                         14 import net.minecraft.util.Mth;
14 import net.minecraft.util.Util;                                         15 import net.minecraft.util.Util;
15 import net.minecraft.world.level.chunk.status.ChunkPyramid;             16 import net.minecraft.world.level.chunk.status.ChunkPyramid;
16 import net.minecraft.world.level.chunk.status.ChunkStatus;              17 import net.minecraft.world.level.chunk.status.ChunkStatus;

net/minecraft/world/level/ChunkPos.java --- 2/3 --- Java
69       return new ChunkPos(($$0 << 5) + 31, ($$1 << 5) + 31);            70       return new ChunkPos(($$0 << 5) + 31, ($$1 << 5) + 31);
70    }                                                                    71    }
..                                                                         72 
..                                                                         73    public boolean isValid() {
..                                                                         74       return isValid(this.x, this.z);
..                                                                         75    }
..                                                                         76 
..                                                                         77    public static boolean isValid(int $$0, int $$1) {
..                                                                         78       return Mth.absMax($$0, $$1) <= MAX_COORDINATE_VALUE;
..                                                                         79    }
71                                                                         80 
72    public long toLong() {                                               81    public long toLong() {
73       return asLong(this.x, this.z);                                    82       return asLong(this.x, this.z);

net/minecraft/world/level/ChunkPos.java --- 3/3 --- Java
183    }                                                                   192    }
184                                                                        193 
185    public int getChessboardDistance(int $$0, int $$1) {                194    public int getChessboardDistance(int $$0, int $$1) {
186       return Math.max(Math.abs(this.x - $$0), Math.abs(this.z - $$1)); 195       return Mth.chessboardDistance($$0, $$1, this.x, this.z);
187    }                                                                   196    }
188                                                                        197 
189    public int distanceSquared(ChunkPos $$0) {                          198    public int distanceSquared(ChunkPos $$0) {

net/minecraft/world/level/Level.java --- 1/7 --- Java
155       return !this.isOutsideBuildHeight($$0) && isInWorldBoundsHorizon 155       return !this.isOutsideBuildHeight($$0) && isInWorldBoundsHorizon
... tal($$0);                                                              ... tal($$0);
156    }                                                                   156    }
...                                                                        157 
...                                                                        158    public boolean isInValidBounds(BlockPos $$0) {
...                                                                        159       return !this.isOutsideBuildHeight($$0) && isInValidBoundsHorizon
...                                                                        ... tal($$0);
...                                                                        160    }
157                                                                        161 
158    public static boolean isInSpawnableBounds(BlockPos $$0) {           162    public static boolean isInSpawnableBounds(BlockPos $$0) {
159       return !isOutsideSpawnableHeight($$0.getY()) && isInWorldBoundsH 163       return !isOutsideSpawnableHeight($$0.getY()) && isInWorldBoundsH
    orizontal($$0);                                                            orizontal($$0);

net/minecraft/world/level/Level.java --- 2/7 --- Java
163       return $$0.getX() >= -30000000 && $$0.getZ() >= -30000000 && $$0 167       return $$0.getX() >= -30000000 && $$0.getZ() >= -30000000 && $$0
... .getX() < 30000000 && $$0.getZ() < 30000000;                           ... .getX() < 30000000 && $$0.getZ() < 30000000;
164    }                                                                   168    }
...                                                                        169 
...                                                                        170    private static boolean isInValidBoundsHorizontal(BlockPos $$0) {
...                                                                        171       int $$1 = SectionPos.blockToSectionCoord($$0.getX());
...                                                                        172       int $$2 = SectionPos.blockToSectionCoord($$0.getZ());
...                                                                        173       return ChunkPos.isValid($$1, $$2);
...                                                                        174    }
165                                                                        175 
166    private static boolean isOutsideSpawnableHeight(int $$0) {          176    private static boolean isOutsideSpawnableHeight(int $$0) {
167       return $$0 < -20000000 || $$0 >= 20000000;                       177       return $$0 < -20000000 || $$0 >= 20000000;

net/minecraft/world/level/Level.java --- 3/7 --- Java
193                                                                        203 
194    @Override                                                           204    @Override
195    public boolean setBlock(BlockPos $$0, BlockState $$1, @Block.Update 205    public boolean setBlock(BlockPos $$0, BlockState $$1, @Block.Update
... Flags int $$2, int $$3) {                                              ... Flags int $$2, int $$3) {
196       if (this.isOutsideBuildHeight($$0)) {                            206       if (!this.isInValidBounds($$0)) {
197          return false;                                                 207          return false;
198       } else if (!this.isClientSide() && this.isDebug()) {             208       } else if (!this.isClientSide() && this.isDebug()) {
199          return false;                                                 209          return false;

net/minecraft/world/level/Level.java --- 4/7 --- Java
324                                                                        334 
325    @Override                                                           335    @Override
326    public BlockState getBlockState(BlockPos $$0) {                     336    public BlockState getBlockState(BlockPos $$0) {
327       if (this.isOutsideBuildHeight($$0)) {                            337       if (!this.isInValidBounds($$0)) {
328          return Blocks.VOID_AIR.defaultBlockState();                   338          return Blocks.VOID_AIR.defaultBlockState();
329       } else {                                                         339       } else {
330          LevelChunk $$1 = this.getChunk(SectionPos.blockToSectionCoord 340          LevelChunk $$1 = this.getChunk(SectionPos.blockToSectionCoord
    ($$0.getX()), SectionPos.blockToSectionCoord($$0.getZ()));                 ($$0.getX()), SectionPos.blockToSectionCoord($$0.getZ()));

net/minecraft/world/level/Level.java --- 5/7 --- Java
334                                                                        344 
335    @Override                                                           345    @Override
336    public FluidState getFluidState(BlockPos $$0) {                     346    public FluidState getFluidState(BlockPos $$0) {
337       if (this.isOutsideBuildHeight($$0)) {                            347       if (!this.isInValidBounds($$0)) {
338          return Fluids.EMPTY.defaultFluidState();                      348          return Fluids.EMPTY.defaultFluidState();
339       } else {                                                         349       } else {
340          LevelChunk $$1 = this.getChunkAt($$0);                        350          LevelChunk $$1 = this.getChunkAt($$0);

net/minecraft/world/level/Level.java --- 6/7 --- Java
567    @Nullable                                                           577    @Nullable
568    @Override                                                           578    @Override
569    public BlockEntity getBlockEntity(BlockPos $$0) {                   579    public BlockEntity getBlockEntity(BlockPos $$0) {
570       if (this.isOutsideBuildHeight($$0)) {                            580       if (!this.isInValidBounds($$0)) {
571          return null;                                                  581          return null;
572       } else {                                                         582       } else {
573          return !this.isClientSide() && Thread.currentThread() != this 583          return !this.isClientSide() && Thread.currentThread() != this
    .thread                                                                    .thread

net/minecraft/world/level/Level.java --- 7/7 --- Java
578                                                                        588 
579    public void setBlockEntity(BlockEntity $$0) {                       589    public void setBlockEntity(BlockEntity $$0) {
580       BlockPos $$1 = $$0.getBlockPos();                                590       BlockPos $$1 = $$0.getBlockPos();
581       if (!this.isOutsideBuildHeight($$1)) {                           591       if (this.isInValidBounds($$1)) {
582          this.getChunkAt($$1).addAndRegisterBlockEntity($$0);          592          this.getChunkAt($$1).addAndRegisterBlockEntity($$0);
583       }                                                                593       }
584    }                                                                   594    }
585                                                                        595 
586    public void removeBlockEntity(BlockPos $$0) {                       596    public void removeBlockEntity(BlockPos $$0) {
587       if (!this.isOutsideBuildHeight($$0)) {                           597       if (this.isInValidBounds($$0)) {
588          this.getChunkAt($$0).removeBlockEntity($$0);                  598          this.getChunkAt($$0).removeBlockEntity($$0);
589       }                                                                599       }
590    }                                                                   600    }
591                                                                        601 
592    public boolean isLoaded(BlockPos $$0) {                             602    public boolean isLoaded(BlockPos $$0) {
593       return this.isOutsideBuildHeight($$0)                            603       return !this.isInValidBounds($$0)
594          ? false                                                       604          ? false
595          : this.getChunkSource().hasChunk(SectionPos.blockToSectionCoo 605          : this.getChunkSource().hasChunk(SectionPos.blockToSectionCoo
... rd($$0.getX()), SectionPos.blockToSectionCoord($$0.getZ()));           ... rd($$0.getX()), SectionPos.blockToSectionCoord($$0.getZ()));
596    }                                                                   606    }
597                                                                        607 
598    public boolean loadedAndEntityCanStandOnFace(BlockPos $$0, Entity $ 608    public boolean loadedAndEntityCanStandOnFace(BlockPos $$0, Entity $
... $1, Direction $$2) {                                                   ... $1, Direction $$2) {
599       if (this.isOutsideBuildHeight($$0)) {                            609       if (!this.isInValidBounds($$0)) {
600          return false;                                                 610          return false;
601       } else {                                                         611       } else {
602          ChunkAccess $$3 = this.getChunk(SectionPos.blockToSectionCoor 612          ChunkAccess $$3 = this.getChunk(SectionPos.blockToSectionCoor
    d($$0.getX()), SectionPos.blockToSectionCoord($$0.getZ()), ChunkStatus     d($$0.getX()), SectionPos.blockToSectionCoord($$0.getZ()), ChunkStatus
    .FULL, false);                                                             .FULL, false);

net/minecraft/util/Mth.java --- Java
129       }                                                                129       }
130    }                                                                   130    }
...                                                                        131 
...                                                                        132    public static int absMax(int $$0, int $$1) {
...                                                                        133       return Math.max(Math.abs($$0), Math.abs($$1));
...                                                                        134    }
...                                                                        135 
...                                                                        136    public static float absMax(float $$0, float $$1) {
...                                                                        137       return Math.max(Math.abs($$0), Math.abs($$1));
...                                                                        138    }
131                                                                        139 
132    public static double absMax(double $$0, double $$1) {               140    public static double absMax(double $$0, double $$1) {
133       return Math.max(Math.abs($$0), Math.abs($$1));                   141       return Math.max(Math.abs($$0), Math.abs($$1));
134    }                                                                   142    }
...                                                                        143 
...                                                                        144    public static int chessboardDistance(int $$0, int $$1, int $$2, int
...                                                                        ...  $$3) {
...                                                                        145       return absMax($$2 - $$0, $$3 - $$1);
...                                                                        146    }
135                                                                        147 
136    public static int floorDiv(int $$0, int $$1) {                      148    public static int floorDiv(int $$0, int $$1) {
137       return Math.floorDiv($$0, $$1);                                  149       return Math.floorDiv($$0, $$1);

net/minecraft/SharedConstants.java --- 1/2 --- Java
15    @Deprecated                                                          15    @Deprecated
16    public static final boolean SNAPSHOT = true;                         16    public static final boolean SNAPSHOT = true;
17    @Deprecated                                                          17    @Deprecated
18    public static final int WORLD_VERSION = 4668;                        18    public static final int WORLD_VERSION = 4669;
19    @Deprecated                                                          19    @Deprecated
20    public static final String SERIES = "main";                          20    public static final String SERIES = "main";
21    @Deprecated                                                          21    @Deprecated
22    public static final int RELEASE_NETWORK_PROTOCOL_VERSION = 774;      22    public static final int RELEASE_NETWORK_PROTOCOL_VERSION = 774;
23    @Deprecated                                                          23    @Deprecated
24    public static final int SNAPSHOT_NETWORK_PROTOCOL_VERSION = 284;     24    public static final int SNAPSHOT_NETWORK_PROTOCOL_VERSION = 285;
25    public static final int SNBT_NAG_VERSION = 4650;                     25    public static final int SNBT_NAG_VERSION = 4650;
26    private static final int SNAPSHOT_PROTOCOL_BIT = 30;                 26    private static final int SNAPSHOT_PROTOCOL_BIT = 30;
27    public static final boolean CRASH_EAGERLY = false;                   27    public static final boolean CRASH_EAGERLY = false;

net/minecraft/SharedConstants.java --- 2/2 --- Java
205    }                                                                   205    }
206                                                                        206 
207    public static int getProtocolVersion() {                            207    public static int getProtocolVersion() {
208       return 1073742108;                                               208       return 1073742109;
209    }                                                                   209    }
210                                                                        210 
211    public static boolean debugVoidTerrain(ChunkPos $$0) {              211    public static boolean debugVoidTerrain(ChunkPos $$0) {

net/minecraft/DetectedVersion.java --- Java
25                                                                         25 
26    public static WorldVersion createBuiltIn(String $$0, String $$1, boo 26    public static WorldVersion createBuiltIn(String $$0, String $$1, boo
.. lean $$2) {                                                             .. lean $$2) {
27       return new WorldVersion.Simple(                                   27       return new WorldVersion.Simple(
28          $$0, $$1, new DataVersion(4668, "main"), SharedConstants.getPr 28          $$0, $$1, new DataVersion(4669, "main"), SharedConstants.getPr
.. otocolVersion(), PackFormat.of(75, 0), PackFormat.of(94, 1), new Date() .. otocolVersion(), PackFormat.of(75, 0), PackFormat.of(94, 1), new Date()
.. , $$2                                                                   .. , $$2
29       );                                                                29       );
30    }                                                                    30    }
31                                                                         31