mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 04:05:12 +00:00
ScriptItemStack, ScriptEntity, ScriptBlock, & ScriptBlockPos:
-Implemented equals() functions for comparing objects of these types
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user