Java 类net.minecraft.server.gui.IUpdatePlayerListBox 实例源码

项目:4Space-5    文件:EntityAstroMiner.java   
@SideOnly(Side.CLIENT)
public IUpdatePlayerListBox getSoundUpdater()
{
    return this.soundUpdater;
}
项目:4Space-5    文件:IEntityNoisy.java   
@SideOnly(Side.CLIENT)
public IUpdatePlayerListBox getSoundUpdater();
项目:4Space-5    文件:EntityAutoRocket.java   
@SideOnly(Side.CLIENT)
public IUpdatePlayerListBox getSoundUpdater()
{
    return this.rocketSoundUpdater;
}
项目:Resilience-Client-Source    文件:MinecraftServer.java   
public void updateTimeLightAndEntities()
{
    this.theProfiler.startSection("levels");
    int var1;

    for (var1 = 0; var1 < this.worldServers.length; ++var1)
    {
        long var2 = System.nanoTime();

        if (var1 == 0 || this.getAllowNether())
        {
            WorldServer var4 = this.worldServers[var1];
            this.theProfiler.startSection(var4.getWorldInfo().getWorldName());
            this.theProfiler.startSection("pools");
            var4.getWorldVec3Pool().clear();
            this.theProfiler.endSection();

            if (this.tickCounter % 20 == 0)
            {
                this.theProfiler.startSection("timeSync");
                this.serverConfigManager.func_148537_a(new S03PacketTimeUpdate(var4.getTotalWorldTime(), var4.getWorldTime(), var4.getGameRules().getGameRuleBooleanValue("doDaylightCycle")), var4.provider.dimensionId);
                this.theProfiler.endSection();
            }

            this.theProfiler.startSection("tick");
            CrashReport var6;

            try
            {
                var4.tick();
            }
            catch (Throwable var8)
            {
                var6 = CrashReport.makeCrashReport(var8, "Exception ticking world");
                var4.addWorldInfoToCrashReport(var6);
                throw new ReportedException(var6);
            }

            try
            {
                var4.updateEntities();
            }
            catch (Throwable var7)
            {
                var6 = CrashReport.makeCrashReport(var7, "Exception ticking world entities");
                var4.addWorldInfoToCrashReport(var6);
                throw new ReportedException(var6);
            }

            this.theProfiler.endSection();
            this.theProfiler.startSection("tracker");
            var4.getEntityTracker().updateTrackedEntities();
            this.theProfiler.endSection();
            this.theProfiler.endSection();
        }

        this.timeOfLastDimensionTick[var1][this.tickCounter % 100] = System.nanoTime() - var2;
    }

    this.theProfiler.endStartSection("connection");
    this.func_147137_ag().networkTick();
    this.theProfiler.endStartSection("players");
    this.serverConfigManager.sendPlayerInfoToAllPlayers();
    this.theProfiler.endStartSection("tickables");

    for (var1 = 0; var1 < this.tickables.size(); ++var1)
    {
        ((IUpdatePlayerListBox)this.tickables.get(var1)).update();
    }

    this.theProfiler.endSection();
}
项目:Cauldron    文件:MinecraftServer.java   
@SideOnly(Side.SERVER)
public void func_82010_a(IUpdatePlayerListBox p_82010_1_)
{
    this.tickables.add(p_82010_1_);
}
项目:Cauldron    文件:MinecraftServer.java   
public void updateTimeLightAndEntities()
{
    this.theProfiler.startSection("levels");
    net.minecraftforge.common.chunkio.ChunkIOExecutor.tick();
    int i;

    Integer[] ids = DimensionManager.getIDs(this.tickCounter % 200 == 0);
    for (int x = 0; x < ids.length; x++)
    {
        int id = ids[x];
        long j = System.nanoTime();

        if (id == 0 || this.getAllowNether())
        {
            WorldServer worldserver = DimensionManager.getWorld(id);
            this.theProfiler.startSection(worldserver.getWorldInfo().getWorldName());
            this.theProfiler.startSection("pools");
            this.theProfiler.endSection();

            if (this.tickCounter % 20 == 0)
            {
                this.theProfiler.startSection("timeSync");
                this.serverConfigManager.sendPacketToAllPlayersInDimension(new S03PacketTimeUpdate(worldserver.getTotalWorldTime(), worldserver.getWorldTime(), worldserver.getGameRules().getGameRuleBooleanValue("doDaylightCycle")), worldserver.provider.dimensionId);
                this.theProfiler.endSection();
            }

            this.theProfiler.startSection("tick");
            FMLCommonHandler.instance().onPreWorldTick(worldserver);
            CrashReport crashreport;

            try
            {
                worldserver.tick();
            }
            catch (Throwable throwable1)
            {
                crashreport = CrashReport.makeCrashReport(throwable1, "Exception ticking world");
                worldserver.addWorldInfoToCrashReport(crashreport);
                throw new ReportedException(crashreport);
            }

            try
            {
                worldserver.updateEntities();
            }
            catch (Throwable throwable)
            {
                crashreport = CrashReport.makeCrashReport(throwable, "Exception ticking world entities");
                worldserver.addWorldInfoToCrashReport(crashreport);
                throw new ReportedException(crashreport);
            }

            FMLCommonHandler.instance().onPostWorldTick(worldserver);
            this.theProfiler.endSection();
            this.theProfiler.startSection("tracker");
            worldserver.getEntityTracker().updateTrackedEntities();
            this.theProfiler.endSection();
            this.theProfiler.endSection();
        }

        worldTickTimes.get(id)[this.tickCounter % 100] = System.nanoTime() - j;
    }

    this.theProfiler.endStartSection("dim_unloading");
    DimensionManager.unloadWorlds(worldTickTimes);
    this.theProfiler.endStartSection("connection");
    this.func_147137_ag().networkTick();
    this.theProfiler.endStartSection("players");
    this.serverConfigManager.sendPlayerInfoToAllPlayers();
    this.theProfiler.endStartSection("tickables");

    for (i = 0; i < this.tickables.size(); ++i)
    {
        ((IUpdatePlayerListBox)this.tickables.get(i)).update();
    }

    this.theProfiler.endSection();
}
项目:Cauldron    文件:MinecraftServer.java   
@SideOnly(Side.SERVER)
public void func_82010_a(IUpdatePlayerListBox p_82010_1_)
{
    this.tickables.add(p_82010_1_);
}
项目:RuneCraftery    文件:World.java   
public IUpdatePlayerListBox func_82735_a(EntityMinecart p_82735_1_) {
   return null;
}
项目:RuneCraftery    文件:WorldClient.java   
public IUpdatePlayerListBox func_82735_a(EntityMinecart p_82735_1_) {
   return new SoundUpdaterMinecart(this.field_73037_M.field_71416_A, p_82735_1_, this.field_73037_M.field_71439_g);
}
项目:RuneCraftery    文件:MinecraftServer.java   
public void func_71190_q() {
   this.field_71304_b.func_76320_a("levels");

   int var1;
   for(var1 = 0; var1 < this.field_71305_c.length; ++var1) {
      long var2 = System.nanoTime();
      if(var1 == 0 || this.func_71255_r()) {
         WorldServer var4 = this.field_71305_c[var1];
         this.field_71304_b.func_76320_a(var4.func_72912_H().func_76065_j());
         this.field_71304_b.func_76320_a("pools");
         var4.func_82732_R().func_72343_a();
         this.field_71304_b.func_76319_b();
         if(this.field_71315_w % 20 == 0) {
            this.field_71304_b.func_76320_a("timeSync");
            this.field_71318_t.func_72396_a(new Packet4UpdateTime(var4.func_82737_E(), var4.func_72820_D(), var4.func_82736_K().func_82766_b("doDaylightCycle")), var4.field_73011_w.field_76574_g);
            this.field_71304_b.func_76319_b();
         }

         this.field_71304_b.func_76320_a("tick");

         CrashReport var6;
         try {
            var4.func_72835_b();
         } catch (Throwable var8) {
            var6 = CrashReport.func_85055_a(var8, "Exception ticking world");
            var4.func_72914_a(var6);
            throw new ReportedException(var6);
         }

         try {
            var4.func_72939_s();
         } catch (Throwable var7) {
            var6 = CrashReport.func_85055_a(var7, "Exception ticking world entities");
            var4.func_72914_a(var6);
            throw new ReportedException(var6);
         }

         this.field_71304_b.func_76319_b();
         this.field_71304_b.func_76320_a("tracker");
         var4.func_73039_n().func_72788_a();
         this.field_71304_b.func_76319_b();
         this.field_71304_b.func_76319_b();
      }

      this.field_71312_k[var1][this.field_71315_w % 100] = System.nanoTime() - var2;
   }

   this.field_71304_b.func_76318_c("connection");
   this.func_71212_ac().func_71747_b();
   this.field_71304_b.func_76318_c("players");
   this.field_71318_t.func_72374_b();
   this.field_71304_b.func_76318_c("tickables");

   for(var1 = 0; var1 < this.field_71322_p.size(); ++var1) {
      ((IUpdatePlayerListBox)this.field_71322_p.get(var1)).func_73660_a();
   }

   this.field_71304_b.func_76319_b();
}
项目:RuneCraftery    文件:MinecraftServer.java   
@SideOnly(Side.SERVER)
public void func_82010_a(IUpdatePlayerListBox p_82010_1_) {
   this.field_71322_p.add(p_82010_1_);
}
项目:RuneCraftery    文件:World.java   
public IUpdatePlayerListBox getMinecartSoundUpdater(EntityMinecart par1EntityMinecart)
{
    return null;
}
项目:RuneCraftery    文件:WorldClient.java   
public IUpdatePlayerListBox getMinecartSoundUpdater(EntityMinecart par1EntityMinecart)
{
    return new SoundUpdaterMinecart(this.mc.sndManager, par1EntityMinecart, this.mc.thePlayer);
}
项目:RuneCraftery    文件:MinecraftServer.java   
public void updateTimeLightAndEntities()
{
    this.theProfiler.startSection("levels");
    int i;

    Integer[] ids = DimensionManager.getIDs(this.tickCounter % 200 == 0);
    for (int x = 0; x < ids.length; x++)
    {
        int id = ids[x];
        long j = System.nanoTime();

        if (id == 0 || this.getAllowNether())
        {
            WorldServer worldserver = DimensionManager.getWorld(id);
            this.theProfiler.startSection(worldserver.getWorldInfo().getWorldName());
            this.theProfiler.startSection("pools");
            worldserver.getWorldVec3Pool().clear();
            this.theProfiler.endSection();

            if (this.tickCounter % 20 == 0)
            {
                this.theProfiler.startSection("timeSync");
                this.serverConfigManager.sendPacketToAllPlayersInDimension(new Packet4UpdateTime(worldserver.getTotalWorldTime(), worldserver.getWorldTime(), worldserver.getGameRules().getGameRuleBooleanValue("doDaylightCycle")), worldserver.provider.dimensionId);
                this.theProfiler.endSection();
            }

            this.theProfiler.startSection("tick");
            FMLCommonHandler.instance().onPreWorldTick(worldserver);
            CrashReport crashreport;

            try
            {
                worldserver.tick();
            }
            catch (Throwable throwable)
            {
                crashreport = CrashReport.makeCrashReport(throwable, "Exception ticking world");
                worldserver.addWorldInfoToCrashReport(crashreport);
                throw new ReportedException(crashreport);
            }

            try
            {
                worldserver.updateEntities();
            }
            catch (Throwable throwable1)
            {
                crashreport = CrashReport.makeCrashReport(throwable1, "Exception ticking world entities");
                worldserver.addWorldInfoToCrashReport(crashreport);
                throw new ReportedException(crashreport);
            }

            FMLCommonHandler.instance().onPostWorldTick(worldserver);
            this.theProfiler.endSection();
            this.theProfiler.startSection("tracker");
            worldserver.getEntityTracker().updateTrackedEntities();
            this.theProfiler.endSection();
            this.theProfiler.endSection();
        }

        worldTickTimes.get(id)[this.tickCounter % 100] = System.nanoTime() - j;
    }

    this.theProfiler.endStartSection("dim_unloading");
    DimensionManager.unloadWorlds(worldTickTimes);
    this.theProfiler.endStartSection("connection");
    this.getNetworkThread().networkTick();
    this.theProfiler.endStartSection("players");
    this.serverConfigManager.sendPlayerInfoToAllPlayers();
    this.theProfiler.endStartSection("tickables");

    for (i = 0; i < this.tickables.size(); ++i)
    {
        ((IUpdatePlayerListBox)this.tickables.get(i)).update();
    }

    this.theProfiler.endSection();
}
项目:RuneCraftery    文件:MinecraftServer.java   
@SideOnly(Side.SERVER)
public void func_82010_a(IUpdatePlayerListBox par1IUpdatePlayerListBox)
{
    this.tickables.add(par1IUpdatePlayerListBox);
}
项目:BetterNutritionMod    文件:World.java   
public IUpdatePlayerListBox getMinecartSoundUpdater(EntityMinecart par1EntityMinecart)
{
    return null;
}
项目:BetterNutritionMod    文件:WorldClient.java   
public IUpdatePlayerListBox getMinecartSoundUpdater(EntityMinecart par1EntityMinecart)
{
    return new SoundUpdaterMinecart(this.mc.sndManager, par1EntityMinecart, this.mc.thePlayer);
}
项目:BetterNutritionMod    文件:MinecraftServer.java   
public void updateTimeLightAndEntities()
{
    this.theProfiler.startSection("levels");
    int i;

    Integer[] ids = DimensionManager.getIDs(this.tickCounter % 200 == 0);
    for (int x = 0; x < ids.length; x++)
    {
        int id = ids[x];
        long j = System.nanoTime();

        if (id == 0 || this.getAllowNether())
        {
            WorldServer worldserver = DimensionManager.getWorld(id);
            this.theProfiler.startSection(worldserver.getWorldInfo().getWorldName());
            this.theProfiler.startSection("pools");
            worldserver.getWorldVec3Pool().clear();
            this.theProfiler.endSection();

            if (this.tickCounter % 20 == 0)
            {
                this.theProfiler.startSection("timeSync");
                this.serverConfigManager.sendPacketToAllPlayersInDimension(new Packet4UpdateTime(worldserver.getTotalWorldTime(), worldserver.getWorldTime(), worldserver.getGameRules().getGameRuleBooleanValue("doDaylightCycle")), worldserver.provider.dimensionId);
                this.theProfiler.endSection();
            }

            this.theProfiler.startSection("tick");
            FMLCommonHandler.instance().onPreWorldTick(worldserver);
            CrashReport crashreport;

            try
            {
                worldserver.tick();
            }
            catch (Throwable throwable)
            {
                crashreport = CrashReport.makeCrashReport(throwable, "Exception ticking world");
                worldserver.addWorldInfoToCrashReport(crashreport);
                throw new ReportedException(crashreport);
            }

            try
            {
                worldserver.updateEntities();
            }
            catch (Throwable throwable1)
            {
                crashreport = CrashReport.makeCrashReport(throwable1, "Exception ticking world entities");
                worldserver.addWorldInfoToCrashReport(crashreport);
                throw new ReportedException(crashreport);
            }

            FMLCommonHandler.instance().onPostWorldTick(worldserver);
            this.theProfiler.endSection();
            this.theProfiler.startSection("tracker");
            worldserver.getEntityTracker().updateTrackedEntities();
            this.theProfiler.endSection();
            this.theProfiler.endSection();
        }

        worldTickTimes.get(id)[this.tickCounter % 100] = System.nanoTime() - j;
    }

    this.theProfiler.endStartSection("dim_unloading");
    DimensionManager.unloadWorlds(worldTickTimes);
    this.theProfiler.endStartSection("connection");
    this.getNetworkThread().networkTick();
    this.theProfiler.endStartSection("players");
    this.serverConfigManager.sendPlayerInfoToAllPlayers();
    this.theProfiler.endStartSection("tickables");

    for (i = 0; i < this.tickables.size(); ++i)
    {
        ((IUpdatePlayerListBox)this.tickables.get(i)).update();
    }

    this.theProfiler.endSection();
}
项目:BetterNutritionMod    文件:MinecraftServer.java   
@SideOnly(Side.SERVER)
public void func_82010_a(IUpdatePlayerListBox par1IUpdatePlayerListBox)
{
    this.tickables.add(par1IUpdatePlayerListBox);
}