net.minecraft.util.math.BlockPos doesn't override equals and hashCode methods. Please override these methods.
It doesn't need to. They are overridden in Vec3i.
Vec3i
Most helpful comment
It doesn't need to. They are overridden in
Vec3i.