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 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 interface Comparator<net.minecraft.world.level.ChunkPos>