/** * called periodically to remove out-of-date portal locations from the cache list. Argument par1 is a * WorldServer.getTotalWorldTime() value. */ public void removeStalePortalLocations(long par1) { if (par1 % 100L == 0L) { Iterator iterator = this.destinationCoordinateKeys.iterator(); long j = par1 - 600L; while (iterator.hasNext()) { Long olong = (Long)iterator.next(); PortalPosition portalposition = (PortalPosition)this.destinationCoordinateCache.getValueByKey(olong.longValue()); if (portalposition == null || portalposition.lastUpdateTime < j) { iterator.remove(); this.destinationCoordinateCache.remove(olong.longValue()); } } } }
@Override public void removeStalePortalLocations(long par1) { if (par1 % 100L == 0L) { Iterator var3 = this.field_85190_d.iterator(); long var4 = par1 - 600L; while (var3.hasNext()) { Long var6 = (Long) var3.next(); PortalPosition var7 = (PortalPosition) this.field_85191_c.getValueByKey(var6.longValue()); if (var7 == null || var7.lastUpdateTime < var4) { var3.remove(); this.field_85191_c.remove(var6.longValue()); } } } }
public void func_85189_a(long p_85189_1_) { if(p_85189_1_ % 100L == 0L) { Iterator var3 = this.field_85190_d.iterator(); long var4 = p_85189_1_ - 600L; while(var3.hasNext()) { Long var6 = (Long)var3.next(); PortalPosition var7 = (PortalPosition)this.field_85191_c.func_76164_a(var6.longValue()); if(var7 == null || var7.field_85087_d < var4) { var3.remove(); this.field_85191_c.func_76159_d(var6.longValue()); } } } }
@Override @SuppressWarnings("unchecked") public void removeStalePortalLocations(long par1) { if (par1 % 100L == 0L) { Iterator<Long> iterator = destinationCoordinateKeys.iterator(); long j = par1 - 600L; while (iterator.hasNext()) { Long olong = iterator.next(); PortalPosition portalposition = (PortalPosition) destinationCoordinateCache .getValueByKey(olong.longValue()); if (portalposition == null || portalposition.lastUpdateTime < j) { iterator.remove(); destinationCoordinateCache.remove(olong.longValue()); } } } }
public void removeStalePortalLocations(long par1) { if (par1 % 100L == 0L) { Iterator iterator = this.destinationCoordinateKeys.iterator(); long j = par1 - 600L; while (iterator.hasNext()) { Long olong = (Long) iterator.next(); PortalPosition portalposition = (PortalPosition) this.destinationCoordinateCache.getValueByKey(olong.longValue()); if (portalposition == null || portalposition.lastUpdateTime < j) { iterator.remove(); this.destinationCoordinateCache.remove(olong.longValue()); } } } }
/** * called periodically to remove out-of-date portal locations from the cache * list. Argument par1 is a WorldServer.getTotalWorldTime() value. */ public void removeStalePortalLocations(long par1) { if (par1 % 100L == 0L) { Iterator iterator = this.destinationCoordinateKeys.iterator(); long j = par1 - 600L; while (iterator.hasNext()) { Long olong = (Long) iterator.next(); PortalPosition portalposition = (PortalPosition) this.destinationCoordinateCache.getValueByKey(olong.longValue()); if (portalposition == null || portalposition.lastUpdateTime < j) { iterator.remove(); this.destinationCoordinateCache.remove(olong.longValue()); } } } }