Java 类net.minecraft.world.PortalPosition 实例源码

项目:ZeroQuest    文件:TeleporterNillax.java   
/**
 * 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());
            }
        }
    }
}
项目:Rediscovered-Mod-1.6.4    文件:SkyDimensionTeleporter.java   
@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());
        }
   }
  }
}
项目:RuneCraftery    文件:Teleporter.java   
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());
         }
      }
   }

}
项目:MysticRPG    文件:YirawiaTeleporter.java   
@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());
            }
        }
    }
}
项目:Modjam-2    文件:MagicWorldTeleporter.java   
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());
            }
        }
    }
}
项目:Bubblegum-Mod    文件:BubblegumTeleporter.java   
/**
         * 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());
                         }
                 }
         }
}
项目:powell.cellarium    文件:TeleporterVoid.java   
/**
 * 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());
            }
        }
    }
}
项目:Eldritch-Infusion    文件:TeleporterEI.java   
/**
 * 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());
            }
        }
    }
}
项目:Eldritch-Infusion    文件:TeleporterEI.java   
/**
 * 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());
            }
        }
    }
}