Use lombok annotations instead

This commit is contained in:
Ghost_chu committed 2023-09-17 16:42:54 +08:00
1 parent 7978ec335d
commit 54c90af33f
1 file changed
+2 -16
@@ -1,10 +1,9 @@
package com.ghostchu.quickshop.api.serialize;
import lombok.EqualsAndHashCode;
import org.bukkit.Location;
import org.jetbrains.annotations.NotNull;
import java.util.Objects;
@EqualsAndHashCode
public final class BlockPos {
private final int version = 2;
private final int x;
@@ -44,19 +43,6 @@ public final class BlockPos {
return world;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
BlockPos blockPos = (BlockPos) o;
return version == blockPos.version && x == blockPos.x && y == blockPos.y && z == blockPos.z && Objects.equals(world, blockPos.world);
}
@Override
public int hashCode() {
return Objects.hash(version, x, y, z, world);
}
@Override
public String toString() {
return "BlockPos{" +