package com.thebrokenrail.energonrelics.util; import net.minecraft.util.math.BlockPos; import net.minecraft.util.registry.RegistryKey; import net.minecraft.world.World; public class BlockPosWithDimension { public final BlockPos pos; public final RegistryKey dimension; public BlockPosWithDimension(BlockPos pos, RegistryKey dimension) { this.pos = pos; this.dimension = dimension; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } else if (obj instanceof BlockPosWithDimension) { return pos.equals(((BlockPosWithDimension) obj).pos) && dimension.equals(((BlockPosWithDimension) obj).dimension); } else { return false; } } }