/** updates an already existing object */ public void updateObject(int par1, Object par2Obj) { WatchableObject var3 = this.getWatchedObject(par1); if (!par2Obj.equals(var3.getObject())) { var3.setObject(par2Obj); var3.setWatched(true); this.objectChanged = true; } }
/** updates an already existing object */ public void updateObject(int par1, Object par2Obj) { WatchableObject var3 = (WatchableObject) this.watchedObjects.get(Integer.valueOf(par1)); if (!par2Obj.equals(var3.getObject())) { var3.setObject(par2Obj); var3.setWatching(true); this.objectChanged = true; } }
/** updates an already existing object */ public void updateObject(int par1, Object par2Obj) { WatchableObject watchableobject = this.getWatchedObject(par1); if (!par2Obj.equals(watchableobject.getObject())) { watchableobject.setObject(par2Obj); watchableobject.setWatched(true); this.objectChanged = true; } }
/** updates an already existing object */ public void updateObject(int par1, Object par2Obj) { WatchableObject watchableobject = (WatchableObject) watchedObjects.get(Integer.valueOf(par1)); if (!par2Obj.equals(watchableobject.getObject())) { watchableobject.setObject(par2Obj); watchableobject.setWatching(true); objectChanged = true; } }
public void updateWatchedObjectsFromList(List par1List) { Iterator var2 = par1List.iterator(); while (var2.hasNext()) { WatchableObject var3 = (WatchableObject) var2.next(); WatchableObject var4 = (WatchableObject) this.watchedObjects.get(Integer.valueOf(var3.getDataValueId())); if (var4 != null) { var4.setObject(var3.getObject()); } } }
public void updateWatchedObjectsFromList(List par1List) { Iterator iterator = par1List.iterator(); do { if (!iterator.hasNext()) { break; } WatchableObject watchableobject = (WatchableObject) iterator.next(); WatchableObject watchableobject1 = (WatchableObject) watchedObjects.get(Integer.valueOf(watchableobject.getDataValueId())); if (watchableobject1 != null) { watchableobject1.setObject(watchableobject.getObject()); } } while (true); }
@SideOnly(Side.CLIENT) public void updateWatchedObjectsFromList(List par1List) { this.lock.writeLock().lock(); Iterator iterator = par1List.iterator(); while (iterator.hasNext()) { WatchableObject watchableobject = (WatchableObject) iterator.next(); WatchableObject watchableobject1 = (WatchableObject) this.watchedObjects.get(Integer.valueOf(watchableobject.getDataValueId())); if (watchableobject1 != null) { watchableobject1.setObject(watchableobject.getObject()); } } this.lock.writeLock().unlock(); this.objectChanged = true; }