• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java PlayerUsageSnooper类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中net.minecraft.profiler.PlayerUsageSnooper的典型用法代码示例。如果您正苦于以下问题:Java PlayerUsageSnooper类的具体用法?Java PlayerUsageSnooper怎么用?Java PlayerUsageSnooper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PlayerUsageSnooper类属于net.minecraft.profiler包,在下文中一共展示了PlayerUsageSnooper类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: addServerStatsToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerStatsToSnooper(PlayerUsageSnooper playerSnooper)
{
    playerSnooper.addClientStat("fps", Integer.valueOf(debugFPS));
    playerSnooper.addClientStat("vsync_enabled", Boolean.valueOf(this.gameSettings.enableVsync));
    playerSnooper.addClientStat("display_frequency", Integer.valueOf(Display.getDisplayMode().getFrequency()));
    playerSnooper.addClientStat("display_type", this.fullscreen ? "fullscreen" : "windowed");
    playerSnooper.addClientStat("run_time", Long.valueOf((MinecraftServer.getCurrentTimeMillis() - playerSnooper.getMinecraftStartTimeMillis()) / 60L * 1000L));
    playerSnooper.addClientStat("current_action", this.func_181538_aA());
    String s = ByteOrder.nativeOrder() == ByteOrder.LITTLE_ENDIAN ? "little" : "big";
    playerSnooper.addClientStat("endianness", s);
    playerSnooper.addClientStat("resource_packs", Integer.valueOf(this.mcResourcePackRepository.getRepositoryEntries().size()));
    int i = 0;

    for (ResourcePackRepository.Entry resourcepackrepository$entry : this.mcResourcePackRepository.getRepositoryEntries())
    {
        playerSnooper.addClientStat("resource_pack[" + i++ + "]", resourcepackrepository$entry.getResourcePackName());
    }

    if (this.theIntegratedServer != null && this.theIntegratedServer.getPlayerUsageSnooper() != null)
    {
        playerSnooper.addClientStat("snooper_partner", this.theIntegratedServer.getPlayerUsageSnooper().getUniqueID());
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:24,代码来源:Minecraft.java


示例2: addServerStatsToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerStatsToSnooper(PlayerUsageSnooper playerSnooper) {
	playerSnooper.addClientStat("fps", Integer.valueOf(debugFPS));
	playerSnooper.addClientStat("vsync_enabled", Boolean.valueOf(this.gameSettings.enableVsync));
	playerSnooper.addClientStat("display_frequency", Integer.valueOf(Display.getDisplayMode().getFrequency()));
	playerSnooper.addClientStat("display_type", this.fullscreen ? "fullscreen" : "windowed");
	playerSnooper.addClientStat("run_time", Long.valueOf(
			(MinecraftServer.getCurrentTimeMillis() - playerSnooper.getMinecraftStartTimeMillis()) / 60L * 1000L));
	playerSnooper.addClientStat("current_action", this.func_181538_aA());
	String s = ByteOrder.nativeOrder() == ByteOrder.LITTLE_ENDIAN ? "little" : "big";
	playerSnooper.addClientStat("endianness", s);
	playerSnooper.addClientStat("resource_packs",
			Integer.valueOf(this.mcResourcePackRepository.getRepositoryEntries().size()));
	int i = 0;

	for (ResourcePackRepository.Entry resourcepackrepository$entry : this.mcResourcePackRepository
			.getRepositoryEntries()) {
		playerSnooper.addClientStat("resource_pack[" + i++ + "]",
				resourcepackrepository$entry.getResourcePackName());
	}

	if (this.theIntegratedServer != null && this.theIntegratedServer.getPlayerUsageSnooper() != null) {
		playerSnooper.addClientStat("snooper_partner",
				this.theIntegratedServer.getPlayerUsageSnooper().getUniqueID());
	}
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:26,代码来源:Minecraft.java


示例3: addServerStatsToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
{
    par1PlayerUsageSnooper.addData("fps", Integer.valueOf(debugFPS));
    par1PlayerUsageSnooper.addData("vsync_enabled", Boolean.valueOf(this.gameSettings.enableVsync));
    par1PlayerUsageSnooper.addData("display_frequency", Integer.valueOf(Display.getDisplayMode().getFrequency()));
    par1PlayerUsageSnooper.addData("display_type", this.fullscreen ? "fullscreen" : "windowed");
    par1PlayerUsageSnooper.addData("run_time", Long.valueOf((MinecraftServer.getSystemTimeMillis() - par1PlayerUsageSnooper.getMinecraftStartTimeMillis()) / 60L * 1000L));
    par1PlayerUsageSnooper.addData("resource_packs", Integer.valueOf(this.mcResourcePackRepository.getRepositoryEntries().size()));
    int var2 = 0;
    Iterator var3 = this.mcResourcePackRepository.getRepositoryEntries().iterator();

    while (var3.hasNext())
    {
        ResourcePackRepository.Entry var4 = (ResourcePackRepository.Entry)var3.next();
        par1PlayerUsageSnooper.addData("resource_pack[" + var2++ + "]", var4.getResourcePackName());
    }

    if (this.theIntegratedServer != null && this.theIntegratedServer.getPlayerUsageSnooper() != null)
    {
        par1PlayerUsageSnooper.addData("snooper_partner", this.theIntegratedServer.getPlayerUsageSnooper().getUniqueID());
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:23,代码来源:Minecraft.java


示例4: addServerTypeToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerTypeToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
{
    par1PlayerUsageSnooper.addData("opengl_version", GL11.glGetString(GL11.GL_VERSION));
    par1PlayerUsageSnooper.addData("opengl_vendor", GL11.glGetString(GL11.GL_VENDOR));
    par1PlayerUsageSnooper.addData("client_brand", ClientBrandRetriever.getClientModName());
    par1PlayerUsageSnooper.addData("launched_version", this.launchedVersion);
    ContextCapabilities var2 = GLContext.getCapabilities();
    par1PlayerUsageSnooper.addData("gl_caps[ARB_multitexture]", Boolean.valueOf(var2.GL_ARB_multitexture));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_multisample]", Boolean.valueOf(var2.GL_ARB_multisample));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_texture_cube_map]", Boolean.valueOf(var2.GL_ARB_texture_cube_map));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_vertex_blend]", Boolean.valueOf(var2.GL_ARB_vertex_blend));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_matrix_palette]", Boolean.valueOf(var2.GL_ARB_matrix_palette));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_vertex_program]", Boolean.valueOf(var2.GL_ARB_vertex_program));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_vertex_shader]", Boolean.valueOf(var2.GL_ARB_vertex_shader));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_fragment_program]", Boolean.valueOf(var2.GL_ARB_fragment_program));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_fragment_shader]", Boolean.valueOf(var2.GL_ARB_fragment_shader));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_shader_objects]", Boolean.valueOf(var2.GL_ARB_shader_objects));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_vertex_buffer_object]", Boolean.valueOf(var2.GL_ARB_vertex_buffer_object));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_framebuffer_object]", Boolean.valueOf(var2.GL_ARB_framebuffer_object));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_pixel_buffer_object]", Boolean.valueOf(var2.GL_ARB_pixel_buffer_object));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_uniform_buffer_object]", Boolean.valueOf(var2.GL_ARB_uniform_buffer_object));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_texture_non_power_of_two]", Boolean.valueOf(var2.GL_ARB_texture_non_power_of_two));
    par1PlayerUsageSnooper.addData("gl_caps[gl_max_vertex_uniforms]", Integer.valueOf(GL11.glGetInteger(GL20.GL_MAX_VERTEX_UNIFORM_COMPONENTS)));
    par1PlayerUsageSnooper.addData("gl_caps[gl_max_fragment_uniforms]", Integer.valueOf(GL11.glGetInteger(GL20.GL_MAX_FRAGMENT_UNIFORM_COMPONENTS)));
    par1PlayerUsageSnooper.addData("gl_max_texture_size", Integer.valueOf(getGLMaximumTextureSize()));
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:27,代码来源:Minecraft.java


示例5: addServerStatsToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerStatsToSnooper(PlayerUsageSnooper p_70000_1_)
{
    p_70000_1_.func_152768_a("fps", Integer.valueOf(debugFPS));
    p_70000_1_.func_152768_a("vsync_enabled", Boolean.valueOf(this.gameSettings.enableVsync));
    p_70000_1_.func_152768_a("display_frequency", Integer.valueOf(Display.getDisplayMode().getFrequency()));
    p_70000_1_.func_152768_a("display_type", this.fullscreen ? "fullscreen" : "windowed");
    p_70000_1_.func_152768_a("run_time", Long.valueOf((MinecraftServer.getSystemTimeMillis() - p_70000_1_.getMinecraftStartTimeMillis()) / 60L * 1000L));
    p_70000_1_.func_152768_a("resource_packs", Integer.valueOf(this.mcResourcePackRepository.getRepositoryEntries().size()));
    int i = 0;
    Iterator iterator = this.mcResourcePackRepository.getRepositoryEntries().iterator();

    while (iterator.hasNext())
    {
        ResourcePackRepository.Entry entry = (ResourcePackRepository.Entry)iterator.next();
        p_70000_1_.func_152768_a("resource_pack[" + i++ + "]", entry.getResourcePackName());
    }

    if (this.theIntegratedServer != null && this.theIntegratedServer.getPlayerUsageSnooper() != null)
    {
        p_70000_1_.func_152768_a("snooper_partner", this.theIntegratedServer.getPlayerUsageSnooper().getUniqueID());
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:23,代码来源:Minecraft.java


示例6: func_70001_b

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void func_70001_b(PlayerUsageSnooper p_70001_1_) {
   p_70001_1_.func_76472_a("opengl_version", GL11.glGetString(7938));
   p_70001_1_.func_76472_a("opengl_vendor", GL11.glGetString(7936));
   p_70001_1_.func_76472_a("client_brand", ClientBrandRetriever.getClientModName());
   p_70001_1_.func_76472_a("launched_version", this.field_110447_Z);
   ContextCapabilities var2 = GLContext.getCapabilities();
   p_70001_1_.func_76472_a("gl_caps[ARB_multitexture]", Boolean.valueOf(var2.GL_ARB_multitexture));
   p_70001_1_.func_76472_a("gl_caps[ARB_multisample]", Boolean.valueOf(var2.GL_ARB_multisample));
   p_70001_1_.func_76472_a("gl_caps[ARB_texture_cube_map]", Boolean.valueOf(var2.GL_ARB_texture_cube_map));
   p_70001_1_.func_76472_a("gl_caps[ARB_vertex_blend]", Boolean.valueOf(var2.GL_ARB_vertex_blend));
   p_70001_1_.func_76472_a("gl_caps[ARB_matrix_palette]", Boolean.valueOf(var2.GL_ARB_matrix_palette));
   p_70001_1_.func_76472_a("gl_caps[ARB_vertex_program]", Boolean.valueOf(var2.GL_ARB_vertex_program));
   p_70001_1_.func_76472_a("gl_caps[ARB_vertex_shader]", Boolean.valueOf(var2.GL_ARB_vertex_shader));
   p_70001_1_.func_76472_a("gl_caps[ARB_fragment_program]", Boolean.valueOf(var2.GL_ARB_fragment_program));
   p_70001_1_.func_76472_a("gl_caps[ARB_fragment_shader]", Boolean.valueOf(var2.GL_ARB_fragment_shader));
   p_70001_1_.func_76472_a("gl_caps[ARB_shader_objects]", Boolean.valueOf(var2.GL_ARB_shader_objects));
   p_70001_1_.func_76472_a("gl_caps[ARB_vertex_buffer_object]", Boolean.valueOf(var2.GL_ARB_vertex_buffer_object));
   p_70001_1_.func_76472_a("gl_caps[ARB_framebuffer_object]", Boolean.valueOf(var2.GL_ARB_framebuffer_object));
   p_70001_1_.func_76472_a("gl_caps[ARB_pixel_buffer_object]", Boolean.valueOf(var2.GL_ARB_pixel_buffer_object));
   p_70001_1_.func_76472_a("gl_caps[ARB_uniform_buffer_object]", Boolean.valueOf(var2.GL_ARB_uniform_buffer_object));
   p_70001_1_.func_76472_a("gl_caps[ARB_texture_non_power_of_two]", Boolean.valueOf(var2.GL_ARB_texture_non_power_of_two));
   p_70001_1_.func_76472_a("gl_caps[gl_max_vertex_uniforms]", Integer.valueOf(GL11.glGetInteger('\u8b4a')));
   p_70001_1_.func_76472_a("gl_caps[gl_max_fragment_uniforms]", Integer.valueOf(GL11.glGetInteger('\u8b49')));
   p_70001_1_.func_76472_a("gl_max_texture_size", Integer.valueOf(func_71369_N()));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:26,代码来源:Minecraft.java


示例7: addServerTypeToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerTypeToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
{
    par1PlayerUsageSnooper.addData("opengl_version", GL11.glGetString(GL11.GL_VERSION));
    par1PlayerUsageSnooper.addData("opengl_vendor", GL11.glGetString(GL11.GL_VENDOR));
    par1PlayerUsageSnooper.addData("client_brand", ClientBrandRetriever.getClientModName());
    par1PlayerUsageSnooper.addData("launched_version", this.launchedVersion);
    ContextCapabilities contextcapabilities = GLContext.getCapabilities();
    par1PlayerUsageSnooper.addData("gl_caps[ARB_multitexture]", Boolean.valueOf(contextcapabilities.GL_ARB_multitexture));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_multisample]", Boolean.valueOf(contextcapabilities.GL_ARB_multisample));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_texture_cube_map]", Boolean.valueOf(contextcapabilities.GL_ARB_texture_cube_map));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_vertex_blend]", Boolean.valueOf(contextcapabilities.GL_ARB_vertex_blend));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_matrix_palette]", Boolean.valueOf(contextcapabilities.GL_ARB_matrix_palette));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_vertex_program]", Boolean.valueOf(contextcapabilities.GL_ARB_vertex_program));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_vertex_shader]", Boolean.valueOf(contextcapabilities.GL_ARB_vertex_shader));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_fragment_program]", Boolean.valueOf(contextcapabilities.GL_ARB_fragment_program));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_fragment_shader]", Boolean.valueOf(contextcapabilities.GL_ARB_fragment_shader));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_shader_objects]", Boolean.valueOf(contextcapabilities.GL_ARB_shader_objects));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_vertex_buffer_object]", Boolean.valueOf(contextcapabilities.GL_ARB_vertex_buffer_object));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_framebuffer_object]", Boolean.valueOf(contextcapabilities.GL_ARB_framebuffer_object));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_pixel_buffer_object]", Boolean.valueOf(contextcapabilities.GL_ARB_pixel_buffer_object));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_uniform_buffer_object]", Boolean.valueOf(contextcapabilities.GL_ARB_uniform_buffer_object));
    par1PlayerUsageSnooper.addData("gl_caps[ARB_texture_non_power_of_two]", Boolean.valueOf(contextcapabilities.GL_ARB_texture_non_power_of_two));
    par1PlayerUsageSnooper.addData("gl_caps[gl_max_vertex_uniforms]", Integer.valueOf(GL11.glGetInteger(GL20.GL_MAX_VERTEX_UNIFORM_COMPONENTS)));
    par1PlayerUsageSnooper.addData("gl_caps[gl_max_fragment_uniforms]", Integer.valueOf(GL11.glGetInteger(GL20.GL_MAX_FRAGMENT_UNIFORM_COMPONENTS)));
    par1PlayerUsageSnooper.addData("gl_max_texture_size", Integer.valueOf(getGLMaximumTextureSize()));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:27,代码来源:Minecraft.java


示例8: addServerTypeToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerTypeToSnooper(PlayerUsageSnooper playerSnooper)
{
    playerSnooper.addStatToSnooper("singleplayer", Boolean.valueOf(this.isSinglePlayer()));
    playerSnooper.addStatToSnooper("server_brand", this.getServerModName());
    playerSnooper.addStatToSnooper("gui_supported", GraphicsEnvironment.isHeadless() ? "headless" : "supported");
    playerSnooper.addStatToSnooper("dedicated", Boolean.valueOf(this.isDedicatedServer()));
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:8,代码来源:MinecraftServer.java


示例9: addServerStatsToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
{
    par1PlayerUsageSnooper.addData("whitelist_enabled", Boolean.valueOf(false));
    par1PlayerUsageSnooper.addData("whitelist_count", Integer.valueOf(0));
    par1PlayerUsageSnooper.addData("players_current", Integer.valueOf(this.getCurrentPlayerCount()));
    par1PlayerUsageSnooper.addData("players_max", Integer.valueOf(this.getMaxPlayers()));
    par1PlayerUsageSnooper.addData("players_seen", Integer.valueOf(this.serverConfigManager.getAvailablePlayerDat().length));
    par1PlayerUsageSnooper.addData("uses_auth", Boolean.valueOf(this.onlineMode));
    par1PlayerUsageSnooper.addData("gui_state", this.getGuiEnabled() ? "enabled" : "disabled");
    par1PlayerUsageSnooper.addData("run_time", Long.valueOf((getSystemTimeMillis() - par1PlayerUsageSnooper.getMinecraftStartTimeMillis()) / 60L * 1000L));
    par1PlayerUsageSnooper.addData("avg_tick_ms", Integer.valueOf((int)(MathHelper.average(this.tickTimeArray) * 1.0E-6D)));
    int var2 = 0;

    for (int var3 = 0; var3 < this.worldServers.length; ++var3)
    {
        if (this.worldServers[var3] != null)
        {
            WorldServer var4 = this.worldServers[var3];
            WorldInfo var5 = var4.getWorldInfo();
            par1PlayerUsageSnooper.addData("world[" + var2 + "][dimension]", Integer.valueOf(var4.provider.dimensionId));
            par1PlayerUsageSnooper.addData("world[" + var2 + "][mode]", var5.getGameType());
            par1PlayerUsageSnooper.addData("world[" + var2 + "][difficulty]", var4.difficultySetting);
            par1PlayerUsageSnooper.addData("world[" + var2 + "][hardcore]", Boolean.valueOf(var5.isHardcoreModeEnabled()));
            par1PlayerUsageSnooper.addData("world[" + var2 + "][generator_name]", var5.getTerrainType().getWorldTypeName());
            par1PlayerUsageSnooper.addData("world[" + var2 + "][generator_version]", Integer.valueOf(var5.getTerrainType().getGeneratorVersion()));
            par1PlayerUsageSnooper.addData("world[" + var2 + "][height]", Integer.valueOf(this.buildLimit));
            par1PlayerUsageSnooper.addData("world[" + var2 + "][chunks_loaded]", Integer.valueOf(var4.getChunkProvider().getLoadedChunkCount()));
            ++var2;
        }
    }

    par1PlayerUsageSnooper.addData("worlds", Integer.valueOf(var2));
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:34,代码来源:MinecraftServer.java


示例10: addServerTypeToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerTypeToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
{
    par1PlayerUsageSnooper.addData("singleplayer", Boolean.valueOf(this.isSinglePlayer()));
    par1PlayerUsageSnooper.addData("server_brand", this.getServerModName());
    par1PlayerUsageSnooper.addData("gui_supported", GraphicsEnvironment.isHeadless() ? "headless" : "supported");
    par1PlayerUsageSnooper.addData("dedicated", Boolean.valueOf(this.isDedicatedServer()));
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:8,代码来源:MinecraftServer.java


示例11: addServerStatsToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
/**
 * @author jamierocks - 26th April 2016
 * @reason Overwrite to use Canary's {@link Configuration} rather than the original server.properties
 */
@Overwrite
public void addServerStatsToSnooper(PlayerUsageSnooper playerSnooper) {
    playerSnooper.addClientStat("whitelist_enabled", Configuration.getServerConfig().isWhitelistEnabled());
    playerSnooper.addClientStat("whitelist_count", Canary.whitelist().getSize());
    super.addServerStatsToSnooper(playerSnooper);
}
 
开发者ID:NeptunePowered,项目名称:NeptuneMod,代码行数:11,代码来源:MixinDedicatedServer.java


示例12: addServerStatsToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerStatsToSnooper(PlayerUsageSnooper p_70000_1_)
{
    p_70000_1_.func_152768_a("whitelist_enabled", Boolean.valueOf(false));
    p_70000_1_.func_152768_a("whitelist_count", Integer.valueOf(0));
    p_70000_1_.func_152768_a("players_current", Integer.valueOf(this.getCurrentPlayerCount()));
    p_70000_1_.func_152768_a("players_max", Integer.valueOf(this.getMaxPlayers()));
    p_70000_1_.func_152768_a("players_seen", Integer.valueOf(this.serverConfigManager.getAvailablePlayerDat().length));
    p_70000_1_.func_152768_a("uses_auth", Boolean.valueOf(this.onlineMode));
    p_70000_1_.func_152768_a("gui_state", this.getGuiEnabled() ? "enabled" : "disabled");
    p_70000_1_.func_152768_a("run_time", Long.valueOf((getSystemTimeMillis() - p_70000_1_.getMinecraftStartTimeMillis()) / 60L * 1000L));
    p_70000_1_.func_152768_a("avg_tick_ms", Integer.valueOf((int)(MathHelper.average(this.tickTimeArray) * 1.0E-6D)));
    int i = 0;

    for (int j = 0; j < this.worldServers.length; ++j)
    {
        if (this.worldServers[j] != null)
        {
            WorldServer worldserver = this.worldServers[j];
            WorldInfo worldinfo = worldserver.getWorldInfo();
            p_70000_1_.func_152768_a("world[" + i + "][dimension]", Integer.valueOf(worldserver.provider.dimensionId));
            p_70000_1_.func_152768_a("world[" + i + "][mode]", worldinfo.getGameType());
            p_70000_1_.func_152768_a("world[" + i + "][difficulty]", worldserver.difficultySetting);
            p_70000_1_.func_152768_a("world[" + i + "][hardcore]", Boolean.valueOf(worldinfo.isHardcoreModeEnabled()));
            p_70000_1_.func_152768_a("world[" + i + "][generator_name]", worldinfo.getTerrainType().getWorldTypeName());
            p_70000_1_.func_152768_a("world[" + i + "][generator_version]", Integer.valueOf(worldinfo.getTerrainType().getGeneratorVersion()));
            p_70000_1_.func_152768_a("world[" + i + "][height]", Integer.valueOf(this.buildLimit));
            p_70000_1_.func_152768_a("world[" + i + "][chunks_loaded]", Integer.valueOf(worldserver.getChunkProvider().getLoadedChunkCount()));
            ++i;
        }
    }

    p_70000_1_.func_152768_a("worlds", Integer.valueOf(i));
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:34,代码来源:MinecraftServer.java


示例13: addServerTypeToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerTypeToSnooper(PlayerUsageSnooper p_70001_1_)
{
    p_70001_1_.func_152767_b("singleplayer", Boolean.valueOf(this.isSinglePlayer()));
    p_70001_1_.func_152767_b("server_brand", this.getServerModName());
    p_70001_1_.func_152767_b("gui_supported", GraphicsEnvironment.isHeadless() ? "headless" : "supported");
    p_70001_1_.func_152767_b("dedicated", Boolean.valueOf(this.isDedicatedServer()));
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:8,代码来源:MinecraftServer.java


示例14: func_70000_a

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void func_70000_a(PlayerUsageSnooper p_70000_1_) {
   p_70000_1_.func_76472_a("fps", Integer.valueOf(field_71470_ab));
   p_70000_1_.func_76472_a("texpack_name", this.field_110448_aq.func_110610_d());
   p_70000_1_.func_76472_a("vsync_enabled", Boolean.valueOf(this.field_71474_y.field_74352_v));
   p_70000_1_.func_76472_a("display_frequency", Integer.valueOf(Display.getDisplayMode().getFrequency()));
   p_70000_1_.func_76472_a("display_type", this.field_71431_Q?"fullscreen":"windowed");
   p_70000_1_.func_76472_a("run_time", Long.valueOf((MinecraftServer.func_130071_aq() - p_70000_1_.func_130105_g()) / 60L * 1000L));
   if(this.field_71437_Z != null && this.field_71437_Z.func_80003_ah() != null) {
      p_70000_1_.func_76472_a("snooper_partner", this.field_71437_Z.func_80003_ah().func_80006_f());
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:13,代码来源:Minecraft.java


示例15: func_70000_a

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void func_70000_a(PlayerUsageSnooper p_70000_1_) {
   p_70000_1_.func_76472_a("whitelist_enabled", Boolean.valueOf(false));
   p_70000_1_.func_76472_a("whitelist_count", Integer.valueOf(0));
   p_70000_1_.func_76472_a("players_current", Integer.valueOf(this.func_71233_x()));
   p_70000_1_.func_76472_a("players_max", Integer.valueOf(this.func_71275_y()));
   p_70000_1_.func_76472_a("players_seen", Integer.valueOf(this.field_71318_t.func_72373_m().length));
   p_70000_1_.func_76472_a("uses_auth", Boolean.valueOf(this.field_71325_x));
   p_70000_1_.func_76472_a("gui_state", this.func_71279_ae()?"enabled":"disabled");
   p_70000_1_.func_76472_a("run_time", Long.valueOf((func_130071_aq() - p_70000_1_.func_130105_g()) / 60L * 1000L));
   p_70000_1_.func_76472_a("avg_tick_ms", Integer.valueOf((int)(MathHelper.func_76127_a(this.field_71311_j) * 1.0E-6D)));
   p_70000_1_.func_76472_a("avg_sent_packet_count", Integer.valueOf((int)MathHelper.func_76127_a(this.field_71300_f)));
   p_70000_1_.func_76472_a("avg_sent_packet_size", Integer.valueOf((int)MathHelper.func_76127_a(this.field_71301_g)));
   p_70000_1_.func_76472_a("avg_rec_packet_count", Integer.valueOf((int)MathHelper.func_76127_a(this.field_71313_h)));
   p_70000_1_.func_76472_a("avg_rec_packet_size", Integer.valueOf((int)MathHelper.func_76127_a(this.field_71314_i)));
   int var2 = 0;

   for(int var3 = 0; var3 < this.field_71305_c.length; ++var3) {
      if(this.field_71305_c[var3] != null) {
         WorldServer var4 = this.field_71305_c[var3];
         WorldInfo var5 = var4.func_72912_H();
         p_70000_1_.func_76472_a("world[" + var2 + "][dimension]", Integer.valueOf(var4.field_73011_w.field_76574_g));
         p_70000_1_.func_76472_a("world[" + var2 + "][mode]", var5.func_76077_q());
         p_70000_1_.func_76472_a("world[" + var2 + "][difficulty]", Integer.valueOf(var4.field_73013_u));
         p_70000_1_.func_76472_a("world[" + var2 + "][hardcore]", Boolean.valueOf(var5.func_76093_s()));
         p_70000_1_.func_76472_a("world[" + var2 + "][generator_name]", var5.func_76067_t().func_77127_a());
         p_70000_1_.func_76472_a("world[" + var2 + "][generator_version]", Integer.valueOf(var5.func_76067_t().func_77131_c()));
         p_70000_1_.func_76472_a("world[" + var2 + "][height]", Integer.valueOf(this.field_71280_D));
         p_70000_1_.func_76472_a("world[" + var2 + "][chunks_loaded]", Integer.valueOf(var4.func_72863_F().func_73152_e()));
         ++var2;
      }
   }

   p_70000_1_.func_76472_a("worlds", Integer.valueOf(var2));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:35,代码来源:MinecraftServer.java


示例16: run

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void run() {
   if(PlayerUsageSnooper.func_76473_a(this.field_76344_a).func_70002_Q()) {
      HashMap var1;
      synchronized(PlayerUsageSnooper.func_76474_b(this.field_76344_a)) {
         var1 = new HashMap(PlayerUsageSnooper.func_76469_c(this.field_76344_a));
         var1.put("snooper_count", Integer.valueOf(PlayerUsageSnooper.func_76466_d(this.field_76344_a)));
      }

      HttpUtil.func_76183_a(PlayerUsageSnooper.func_76473_a(this.field_76344_a).func_98033_al(), PlayerUsageSnooper.func_76475_e(this.field_76344_a), var1, true);
   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:12,代码来源:PlayerUsageSnooperThread.java


示例17: addServerStatsToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
{
    par1PlayerUsageSnooper.addData("fps", Integer.valueOf(debugFPS));
    par1PlayerUsageSnooper.addData("texpack_name", this.mcResourcePackRepository.getResourcePackName());
    par1PlayerUsageSnooper.addData("vsync_enabled", Boolean.valueOf(this.gameSettings.enableVsync));
    par1PlayerUsageSnooper.addData("display_frequency", Integer.valueOf(Display.getDisplayMode().getFrequency()));
    par1PlayerUsageSnooper.addData("display_type", this.fullscreen ? "fullscreen" : "windowed");
    par1PlayerUsageSnooper.addData("run_time", Long.valueOf((MinecraftServer.getSystemTimeMillis() - par1PlayerUsageSnooper.func_130105_g()) / 60L * 1000L));

    if (this.theIntegratedServer != null && this.theIntegratedServer.getPlayerUsageSnooper() != null)
    {
        par1PlayerUsageSnooper.addData("snooper_partner", this.theIntegratedServer.getPlayerUsageSnooper().getUniqueID());
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:15,代码来源:Minecraft.java


示例18: addServerStatsToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
{
    par1PlayerUsageSnooper.addData("whitelist_enabled", Boolean.valueOf(false));
    par1PlayerUsageSnooper.addData("whitelist_count", Integer.valueOf(0));
    par1PlayerUsageSnooper.addData("players_current", Integer.valueOf(this.getCurrentPlayerCount()));
    par1PlayerUsageSnooper.addData("players_max", Integer.valueOf(this.getMaxPlayers()));
    par1PlayerUsageSnooper.addData("players_seen", Integer.valueOf(this.serverConfigManager.getAvailablePlayerDat().length));
    par1PlayerUsageSnooper.addData("uses_auth", Boolean.valueOf(this.onlineMode));
    par1PlayerUsageSnooper.addData("gui_state", this.getGuiEnabled() ? "enabled" : "disabled");
    par1PlayerUsageSnooper.addData("run_time", Long.valueOf((getSystemTimeMillis() - par1PlayerUsageSnooper.func_130105_g()) / 60L * 1000L));
    par1PlayerUsageSnooper.addData("avg_tick_ms", Integer.valueOf((int)(MathHelper.average(this.tickTimeArray) * 1.0E-6D)));
    par1PlayerUsageSnooper.addData("avg_sent_packet_count", Integer.valueOf((int)MathHelper.average(this.sentPacketCountArray)));
    par1PlayerUsageSnooper.addData("avg_sent_packet_size", Integer.valueOf((int)MathHelper.average(this.sentPacketSizeArray)));
    par1PlayerUsageSnooper.addData("avg_rec_packet_count", Integer.valueOf((int)MathHelper.average(this.receivedPacketCountArray)));
    par1PlayerUsageSnooper.addData("avg_rec_packet_size", Integer.valueOf((int)MathHelper.average(this.receivedPacketSizeArray)));
    int i = 0;

    for (int j = 0; j < this.worldServers.length; ++j)
    {
        if (this.worldServers[j] != null)
        {
            WorldServer worldserver = this.worldServers[j];
            WorldInfo worldinfo = worldserver.getWorldInfo();
            par1PlayerUsageSnooper.addData("world[" + i + "][dimension]", Integer.valueOf(worldserver.provider.dimensionId));
            par1PlayerUsageSnooper.addData("world[" + i + "][mode]", worldinfo.getGameType());
            par1PlayerUsageSnooper.addData("world[" + i + "][difficulty]", Integer.valueOf(worldserver.difficultySetting));
            par1PlayerUsageSnooper.addData("world[" + i + "][hardcore]", Boolean.valueOf(worldinfo.isHardcoreModeEnabled()));
            par1PlayerUsageSnooper.addData("world[" + i + "][generator_name]", worldinfo.getTerrainType().getWorldTypeName());
            par1PlayerUsageSnooper.addData("world[" + i + "][generator_version]", Integer.valueOf(worldinfo.getTerrainType().getGeneratorVersion()));
            par1PlayerUsageSnooper.addData("world[" + i + "][height]", Integer.valueOf(this.buildLimit));
            par1PlayerUsageSnooper.addData("world[" + i + "][chunks_loaded]", Integer.valueOf(worldserver.getChunkProvider().getLoadedChunkCount()));
            ++i;
        }
    }

    par1PlayerUsageSnooper.addData("worlds", Integer.valueOf(i));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:38,代码来源:MinecraftServer.java


示例19: addServerStatsToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerStatsToSnooper(PlayerUsageSnooper playerSnooper)
{
    playerSnooper.addClientStat("whitelist_enabled", Boolean.valueOf(false));
    playerSnooper.addClientStat("whitelist_count", Integer.valueOf(0));

    if (this.serverConfigManager != null)
    {
        playerSnooper.addClientStat("players_current", Integer.valueOf(this.getCurrentPlayerCount()));
        playerSnooper.addClientStat("players_max", Integer.valueOf(this.getMaxPlayers()));
        playerSnooper.addClientStat("players_seen", Integer.valueOf(this.serverConfigManager.getAvailablePlayerDat().length));
    }

    playerSnooper.addClientStat("uses_auth", Boolean.valueOf(this.onlineMode));
    playerSnooper.addClientStat("gui_state", this.getGuiEnabled() ? "enabled" : "disabled");
    playerSnooper.addClientStat("run_time", Long.valueOf((getCurrentTimeMillis() - playerSnooper.getMinecraftStartTimeMillis()) / 60L * 1000L));
    playerSnooper.addClientStat("avg_tick_ms", Integer.valueOf((int)(MathHelper.average(this.tickTimeArray) * 1.0E-6D)));
    int i = 0;

    if (this.worldServers != null)
    {
        for (int j = 0; j < this.worldServers.length; ++j)
        {
            if (this.worldServers[j] != null)
            {
                WorldServer worldserver = this.worldServers[j];
                WorldInfo worldinfo = worldserver.getWorldInfo();
                playerSnooper.addClientStat("world[" + i + "][dimension]", Integer.valueOf(worldserver.provider.getDimensionId()));
                playerSnooper.addClientStat("world[" + i + "][mode]", worldinfo.getGameType());
                playerSnooper.addClientStat("world[" + i + "][difficulty]", worldserver.getDifficulty());
                playerSnooper.addClientStat("world[" + i + "][hardcore]", Boolean.valueOf(worldinfo.isHardcoreModeEnabled()));
                playerSnooper.addClientStat("world[" + i + "][generator_name]", worldinfo.getTerrainType().getWorldTypeName());
                playerSnooper.addClientStat("world[" + i + "][generator_version]", Integer.valueOf(worldinfo.getTerrainType().getGeneratorVersion()));
                playerSnooper.addClientStat("world[" + i + "][height]", Integer.valueOf(this.buildLimit));
                playerSnooper.addClientStat("world[" + i + "][chunks_loaded]", Integer.valueOf(worldserver.getChunkProvider().getLoadedChunkCount()));
                ++i;
            }
        }
    }

    playerSnooper.addClientStat("worlds", Integer.valueOf(i));
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:42,代码来源:MinecraftServer.java


示例20: addServerStatsToSnooper

import net.minecraft.profiler.PlayerUsageSnooper; //导入依赖的package包/类
public void addServerStatsToSnooper(PlayerUsageSnooper playerSnooper)
{
    playerSnooper.addClientStat("whitelist_enabled", Boolean.valueOf(this.getConfigurationManager().isWhiteListEnabled()));
    playerSnooper.addClientStat("whitelist_count", Integer.valueOf(this.getConfigurationManager().getWhitelistedPlayerNames().length));
    super.addServerStatsToSnooper(playerSnooper);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:7,代码来源:DedicatedServer.java



注:本文中的net.minecraft.profiler.PlayerUsageSnooper类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Codec类代码示例发布时间:2022-05-23
下一篇:
Java PolygonRenderer类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap