TheBrokenRail
2b9becda18
All checks were successful
EnergonRelics/pipeline/head This commit looks good
27 lines
786 B
Java
27 lines
786 B
Java
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<World> dimension;
|
|
|
|
public BlockPosWithDimension(BlockPos pos, RegistryKey<World> 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;
|
|
}
|
|
}
|
|
}
|