ModernLifePatch/src-source/main/java/com/dairymoose/modernlife/blocks/gui/HBlockPos.java
2024-10-26 09:40:21 +08:00

36 lines
965 B
Java

package com.dairymoose.modernlife.blocks.gui;
import net.minecraft.core.BlockPos;
/* loaded from: outputsrg.jar:com/dairymoose/modernlife/blocks/gui/HBlockPos.class */
public class HBlockPos extends BlockPos {
private static final long serialVersionUID = 799381105435813824L;
public HBlockPos(int x, int y, int z) {
super(x, y, z);
}
public HBlockPos(BlockPos pos) {
super(pos.getX(), pos.getY(), pos.getZ());
}
public int hashCode() {
int result = (31 * 1) + getX();
return (31 * ((31 * result) + getY())) + getZ();
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (getClass() != obj.getClass()) {
return false;
}
HBlockPos other = (HBlockPos) obj;
if (getX() != other.getX() || getY() != other.getY() || getZ() != other.getZ()) {
return false;
}
return true;
}
}