Class CenterChunkPosComparator
java.lang.Object
net.neoforged.neoforge.common.util.CenterChunkPosComparator
- All Implemented Interfaces:
Comparator<net.minecraft.world.level.ChunkPos>
public class CenterChunkPosComparator
extends Object
implements Comparator<net.minecraft.world.level.ChunkPos>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCenterChunkPosComparator
(net.minecraft.server.level.ServerPlayer entityplayer) -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(net.minecraft.world.level.ChunkPos a, net.minecraft.world.level.ChunkPos b) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
x
private int x -
z
private int z
-
-
Constructor Details
-
CenterChunkPosComparator
public CenterChunkPosComparator(net.minecraft.server.level.ServerPlayer entityplayer)
-
-
Method Details
-
compare
public int compare(net.minecraft.world.level.ChunkPos a, net.minecraft.world.level.ChunkPos b) - Specified by:
compare
in interfaceComparator<net.minecraft.world.level.ChunkPos>
-