mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +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
@@ -895,4 +895,8 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
public IWorld getWorld() {
|
||||
return NpcAPI.Instance().getIWorld(entity.worldObj);
|
||||
}
|
||||
|
||||
public boolean equals(Object object) {
|
||||
return object instanceof IEntity && ((IEntity<?>)object).getMCEntity().equals(this.entity);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user