This commit is contained in:
tyuXX 2025-06-30 21:49:54 +03:00
parent dbc979b4c9
commit 63ec09f3f7
52 changed files with 286 additions and 195 deletions

View file

@ -25,4 +25,17 @@ public class Location {
public org.bukkit.Location toBukkitLocation() {
return new org.bukkit.Location(org.bukkit.Bukkit.getWorld(world), x, y, z);
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null || getClass() != obj.getClass()) return false;
Location location = (Location) obj;
return x == location.x && y == location.y && z == location.z && Objects.equals(world, location.world);
}
@Override
public int hashCode() {
return Objects.hash(world, x, y, z);
}
}