// Path: src/main/java/myessentials/entities/api/ChunkPos.java
// public class ChunkPos implements IChatFormat {
//     private final int dim;
//     private final int x;
//     private final int z;
// 
//     public ChunkPos(int dim, int x, int z) {
//         this.dim = dim;
//         this.x = x;
//         this.z = z;
//     }
// 
//     public int getX() {
//         return x;
//     }
// 
//     public int getZ() {
//         return z;
//     }
// 
//     public int getDim() {
//         return dim;
//     }
// 
//     @Override
//     public String toString() {
//         return toChatMessage().getUnformattedText();
//     }
// 
//     @Override
//     public IChatComponent toChatMessage() {
//         return MyEssentialsCore.instance.LOCAL.getLocalization("myessentials.format.chunkpos", x, z, dim);
//     }
// 
//     public NBTTagCompound toNBTTagCompound() {
//         NBTTagCompound tag = new NBTTagCompound();
//         tag.setInteger("x", x);
//         tag.setInteger("z", z);
//         return tag;
//     }
// 
//     @Override
//     public boolean equals(Object obj) {
//         if (obj instanceof ChunkPos) {
//             ChunkPos other = (ChunkPos) obj;
//             return other.x == x && other.z == z && other.dim == dim;
//         } else {
//             return super.equals(obj);
//         }
//     }
// }


import myessentials.entities.api.ChunkPos;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.item.ItemStack;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.World;
import java.util.ArrayList;
import java.util.List;
package myessentials.utils;



/**
 * All utilities that are exclusively for in world objects go here.
 */
public class WorldUtils {

    private WorldUtils() {
    }

    /**
     * Transforms a box made out of actual coordinates to a list of all the chunks that this box is in
     */
// Path: src/main/java/myessentials/entities/api/ChunkPos.java
// public class ChunkPos implements IChatFormat {
//     private final int dim;
//     private final int x;
//     private final int z;
// 
//     public ChunkPos(int dim, int x, int z) {
//         this.dim = dim;
//         this.x = x;
//         this.z = z;
//     }
// 
//     public int getX() {
//         return x;
//     }
// 
//     public int getZ() {
//         return z;
//     }
// 
//     public int getDim() {
//         return dim;
//     }
// 
//     @Override
//     public String toString() {
//         return toChatMessage().getUnformattedText();
//     }
// 
//     @Override
//     public IChatComponent toChatMessage() {
//         return MyEssentialsCore.instance.LOCAL.getLocalization("myessentials.format.chunkpos", x, z, dim);
//     }
// 
//     public NBTTagCompound toNBTTagCompound() {
//         NBTTagCompound tag = new NBTTagCompound();
//         tag.setInteger("x", x);
//         tag.setInteger("z", z);
//         return tag;
//     }
// 
//     @Override
//     public boolean equals(Object obj) {
//         if (obj instanceof ChunkPos) {
//             ChunkPos other = (ChunkPos) obj;
//             return other.x == x && other.z == z && other.dim == dim;
//         } else {
//             return super.equals(obj);
//         }
//     }
// }


// Path: src/main/java/myessentials/utils/WorldUtils.java
import myessentials.entities.api.ChunkPos;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.item.ItemStack;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.World;
import java.util.ArrayList;
import java.util.List;

package myessentials.utils;



/**
 * All utilities that are exclusively for in world objects go here.
 */
public class WorldUtils {

    private WorldUtils() {
    }

    /**
     * Transforms a box made out of actual coordinates to a list of all the chunks that this box is in
     */
    public static List<ChunkPos> getChunksInBox(int dim, int minX, int minZ, int maxX, int maxZ) {