ScriptItemStack, ScriptEntity, ScriptBlock, & ScriptBlockPos:

-Implemented equals() functions for comparing objects of these types
This commit is contained in:
Luis C.M committed 2023-06-03 00:34:07 -05:00
1 parent 826a90bd6d
commit 29fb8d1dcf
5 files changed
+19 -6

No files matched your search

@@ -154,4 +154,8 @@ public class ScriptBlockPos implements IPos {
public String toString() {
return "(" + this.getX() + ", " + this.getY() + ", " + this.getZ() + ")";
}
public boolean equals(Object object) {
return object instanceof IPos && ((IPos) object).toLong() == this.toLong();
}
}