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

Java ClientBrandRetriever类代码示例

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

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



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

示例1: handleJoinGame

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
/**
 * Registers some server properties (gametype,hardcore-mode,terraintype,difficulty,player limit), creates a new
 * WorldClient and sets the player initial dimension
 */
public void handleJoinGame(S01PacketJoinGame packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    this.gameController.playerController = new PlayerControllerMP(this.gameController, this);
    this.clientWorldController = new WorldClient(this, new WorldSettings(0L, packetIn.getGameType(), false, packetIn.isHardcoreMode(), packetIn.getWorldType()), packetIn.getDimension(), packetIn.getDifficulty(), this.gameController.mcProfiler);
    this.gameController.gameSettings.difficulty = packetIn.getDifficulty();
    this.gameController.loadWorld(this.clientWorldController);
    this.gameController.thePlayer.dimension = packetIn.getDimension();
    this.gameController.displayGuiScreen(new GuiDownloadTerrain(this));
    this.gameController.thePlayer.setEntityId(packetIn.getEntityId());
    this.currentServerMaxPlayers = packetIn.getMaxPlayers();
    this.gameController.thePlayer.setReducedDebug(packetIn.isReducedDebugInfo());
    this.gameController.playerController.setGameType(packetIn.getGameType());
    this.gameController.gameSettings.sendSettingsToServer();
    this.netManager.sendPacket(new C17PacketCustomPayload("MC|Brand", (new PacketBuffer(Unpooled.buffer())).writeString(ClientBrandRetriever.getClientModName())));
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:21,代码来源:NetHandlerPlayClient.java


示例2: handleJoinGame

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
/**
 * Registers some server properties
 * (gametype,hardcore-mode,terraintype,difficulty,player limit), creates a new
 * WorldClient and sets the player initial dimension
 */
public void handleJoinGame(S01PacketJoinGame packetIn) {
	PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
	this.gameController.playerController = new PlayerControllerMP(this.gameController, this);
	this.clientWorldController = new WorldClient(this,
			new WorldSettings(0L, packetIn.getGameType(), false, packetIn.isHardcoreMode(),
					packetIn.getWorldType()),
			packetIn.getDimension(), packetIn.getDifficulty(), this.gameController.mcProfiler);
	this.gameController.gameSettings.difficulty = packetIn.getDifficulty();
	this.gameController.loadWorld(this.clientWorldController);
	this.gameController.thePlayer.dimension = packetIn.getDimension();
	this.gameController.displayGuiScreen(new GuiDownloadTerrain(this));
	this.gameController.thePlayer.setEntityId(packetIn.getEntityId());
	this.currentServerMaxPlayers = packetIn.getMaxPlayers();
	this.gameController.thePlayer.setReducedDebug(packetIn.isReducedDebugInfo());
	this.gameController.playerController.setGameType(packetIn.getGameType());
	this.gameController.gameSettings.sendSettingsToServer();
	this.netManager.sendPacket(new C17PacketCustomPayload("MC|Brand",
			(new PacketBuffer(Unpooled.buffer())).writeString(ClientBrandRetriever.getClientModName())));
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:25,代码来源:NetHandlerPlayClient.java


示例3: handleJoinGame

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
/**
 * Registers some server properties (gametype,hardcore-mode,terraintype,difficulty,player limit), creates a new
 * WorldClient and sets the player initial dimension
 */
public void handleJoinGame(SPacketJoinGame packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    this.gameController.playerController = new PlayerControllerMP(this.gameController, this);
    this.clientWorldController = new WorldClient(this, new WorldSettings(0L, packetIn.getGameType(), false, packetIn.isHardcoreMode(), packetIn.getWorldType()), packetIn.getDimension(), packetIn.getDifficulty(), this.gameController.mcProfiler);
    this.gameController.gameSettings.difficulty = packetIn.getDifficulty();
    this.gameController.loadWorld(this.clientWorldController);
    this.gameController.player.dimension = packetIn.getDimension();
    this.gameController.displayGuiScreen(new GuiDownloadTerrain(this));
    this.gameController.player.setEntityId(packetIn.getPlayerId());
    this.currentServerMaxPlayers = packetIn.getMaxPlayers();
    this.gameController.player.setReducedDebug(packetIn.isReducedDebugInfo());
    this.gameController.playerController.setGameType(packetIn.getGameType());
    this.gameController.gameSettings.sendSettingsToServer();
    this.netManager.sendPacket(new CPacketCustomPayload("MC|Brand", (new PacketBuffer(Unpooled.buffer())).writeString(ClientBrandRetriever.getClientModName())));
}
 
开发者ID:NSExceptional,项目名称:Zombe-Modpack,代码行数:21,代码来源:NetHandlerPlayClient.java


示例4: handleJoinGame

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
/**
 * Registers some server properties (gametype,hardcore-mode,terraintype,difficulty,player limit), creates a new
 * WorldClient and sets the player initial dimension
 */
public void handleJoinGame(SPacketJoinGame packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    this.gameController.playerController = new PlayerControllerMP(this.gameController, this);
    this.clientWorldController = new WorldClient(this, new WorldSettings(0L, packetIn.getGameType(), false, packetIn.isHardcoreMode(), packetIn.getWorldType()), net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.get(getNetworkManager()).getOverrideDimension(packetIn), packetIn.getDifficulty(), this.gameController.mcProfiler);
    this.gameController.gameSettings.difficulty = packetIn.getDifficulty();
    this.gameController.loadWorld(this.clientWorldController);
    this.gameController.thePlayer.dimension = packetIn.getDimension();
    this.gameController.displayGuiScreen(new GuiDownloadTerrain(this));
    this.gameController.thePlayer.setEntityId(packetIn.getPlayerId());
    this.currentServerMaxPlayers = packetIn.getMaxPlayers();
    this.gameController.thePlayer.setReducedDebug(packetIn.isReducedDebugInfo());
    this.gameController.playerController.setGameType(packetIn.getGameType());
    this.gameController.gameSettings.sendSettingsToServer();
    this.netManager.sendPacket(new CPacketCustomPayload("MC|Brand", (new PacketBuffer(Unpooled.buffer())).writeString(ClientBrandRetriever.getClientModName())));
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:21,代码来源:NetHandlerPlayClient.java


示例5: handleJoinGame

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
@Override
public void handleJoinGame(SPacketJoinGame packetIn) {
	PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.mc);
	if (clientWorldController == null) super.handleJoinGame(packetIn);
       this.mc.playerController = new PlayerControllerMP(this.mc, this); //Replaces the playerController with my own patched PlayerControllerMP
       ReflectionHelper.set(ObfuscatedField.NetHandlerPlayClient_clientWorldController, clientWorldController, this, new WorldClient(this, new WorldSettings(0L, packetIn.getGameType(), false, packetIn.isHardcoreMode(), packetIn.getWorldType()), net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.get(getNetworkManager()).getOverrideDimension(packetIn), packetIn.getDifficulty(), this.mc.mcProfiler));
       this.mc.gameSettings.difficulty = packetIn.getDifficulty();
       this.mc.loadWorld(ReflectionHelper.get(ObfuscatedField.NetHandlerPlayClient_clientWorldController, clientWorldController, this));
       this.mc.player.dimension = packetIn.getDimension();
       this.mc.displayGuiScreen(new GuiDownloadTerrain());
       this.mc.player.setEntityId(packetIn.getPlayerId());
       this.currentServerMaxPlayers = packetIn.getMaxPlayers();
       this.mc.player.setReducedDebug(packetIn.isReducedDebugInfo());
       this.mc.playerController.setGameType(packetIn.getGameType());
       this.mc.gameSettings.sendSettingsToServer();
       this.getNetworkManager().sendPacket(new CPacketCustomPayload("MC|Brand", (new PacketBuffer(Unpooled.buffer())).writeString(ClientBrandRetriever.getClientModName())));
   }
 
开发者ID:MrNobody98,项目名称:morecommands,代码行数:18,代码来源:PatchEntityPlayerSP.java


示例6: func_70001_b

import net.minecraft.client.ClientBrandRetriever; //导入依赖的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: handleLogin

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
public void handleLogin(Packet1Login par1Packet1Login)
{
    this.mc.playerController = new PlayerControllerMP(this.mc, this);
    this.mc.statFileWriter.readStat(StatList.joinMultiplayerStat, 1);
    this.worldClient = new WorldClient(this, new WorldSettings(0L, par1Packet1Login.gameType, false, par1Packet1Login.hardcoreMode, par1Packet1Login.terrainType), par1Packet1Login.dimension, par1Packet1Login.difficultySetting, this.mc.mcProfiler, this.mc.getLogAgent());
    this.worldClient.isRemote = true;
    this.mc.loadWorld(this.worldClient);
    this.mc.thePlayer.dimension = par1Packet1Login.dimension;
    this.mc.displayGuiScreen(new GuiDownloadTerrain(this));
    this.mc.thePlayer.entityId = par1Packet1Login.clientEntityId;
    this.currentServerMaxPlayers = par1Packet1Login.maxPlayers;
    this.mc.playerController.setGameType(par1Packet1Login.gameType);
    FMLNetworkHandler.onConnectionEstablishedToServer(this, netManager, par1Packet1Login);
    this.mc.gameSettings.sendSettingsToServer();
    this.netManager.addToSendQueue(new Packet250CustomPayload("MC|Brand", ClientBrandRetriever.getClientModName().getBytes(Charsets.UTF_8)));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:17,代码来源:NetClientHandler.java


示例8: addServerInfoToCrashReport

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
/**
 * Adds the server info, including from theWorldServer, to the crash report.
 */
public CrashReport addServerInfoToCrashReport(CrashReport report)
{
    report = super.addServerInfoToCrashReport(report);
    report.getCategory().addCrashSectionCallable("Type", new Callable<String>()
    {
        public String call() throws Exception
        {
            return "Integrated Server (map_client.txt)";
        }
    });
    report.getCategory().addCrashSectionCallable("Is Modded", new Callable<String>()
    {
        public String call() throws Exception
        {
            String s = ClientBrandRetriever.getClientModName();

            if (!s.equals("vanilla"))
            {
                return "Definitely; Client brand changed to \'" + s + "\'";
            }
            else
            {
                s = IntegratedServer.this.getServerModName();
                return !s.equals("vanilla") ? "Definitely; Server brand changed to \'" + s + "\'" : (Minecraft.class.getSigners() == null ? "Very likely; Jar signature invalidated" : "Probably not. Jar signature remains and both client + server brands are untouched.");
            }
        }
    });
    return report;
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:33,代码来源:IntegratedServer.java


示例9: addServerInfoToCrashReport

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
/**
 * Adds the server info, including from theWorldServer, to the crash report.
 */
public CrashReport addServerInfoToCrashReport(CrashReport report)
{
    report = super.addServerInfoToCrashReport(report);
    report.getCategory().addCrashSectionCallable("Type", new Callable()
    {
        private static final String __OBFID = "CL_00001130";
        public String call() throws Exception
        {
            return "Integrated Server (map_client.txt)";
        }
    });
    report.getCategory().addCrashSectionCallable("Is Modded", new Callable()
    {
        private static final String __OBFID = "CL_00001131";
        public String call() throws Exception
        {
            String s = ClientBrandRetriever.getClientModName();

            if (!s.equals("vanilla"))
            {
                return "Definitely; Client brand changed to \'" + s + "\'";
            }
            else
            {
                s = IntegratedServer.this.getServerModName();
                return !s.equals("vanilla") ? "Definitely; Server brand changed to \'" + s + "\'" : (Minecraft.class.getSigners() == null ? "Very likely; Jar signature invalidated" : "Probably not. Jar signature remains and both client + server brands are untouched.");
            }
        }
    });
    return report;
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:35,代码来源:IntegratedServer.java


示例10: addServerInfoToCrashReport

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
/**
 * Adds the server info, including from theWorldServer, to the crash report.
 */
public CrashReport addServerInfoToCrashReport(CrashReport report)
{
    report = super.addServerInfoToCrashReport(report);
    report.getCategory().setDetail("Type", new ICrashReportDetail<String>()
    {
        public String call() throws Exception
        {
            return "Integrated Server (map_client.txt)";
        }
    });
    report.getCategory().setDetail("Is Modded", new ICrashReportDetail<String>()
    {
        public String call() throws Exception
        {
            String s = ClientBrandRetriever.getClientModName();

            if (!s.equals("vanilla"))
            {
                return "Definitely; Client brand changed to \'" + s + "\'";
            }
            else
            {
                s = IntegratedServer.this.getServerModName();
                return !"vanilla".equals(s) ? "Definitely; Server brand changed to \'" + s + "\'" : (Minecraft.class.getSigners() == null ? "Very likely; Jar signature invalidated" : "Probably not. Jar signature remains and both client + server brands are untouched.");
            }
        }
    });
    return report;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:33,代码来源:IntegratedServer.java


示例11: handleJoinGame

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
public void handleJoinGame(S01PacketJoinGame p_147282_1_)
{
    this.gameController.playerController = new HookPlayerControllerMP(this.gameController, this);
    this.clientWorldController = new WorldClient(this, new WorldSettings(0L, p_147282_1_.func_149198_e(), false, p_147282_1_.func_149195_d(), p_147282_1_.func_149196_i()), p_147282_1_.func_149194_f(), p_147282_1_.func_149192_g(), this.gameController.mcProfiler);
    this.clientWorldController.isClient = true;
    this.gameController.loadWorld(this.clientWorldController);
    this.gameController.thePlayer.dimension = p_147282_1_.func_149194_f();
    this.gameController.displayGuiScreen(new GuiDownloadTerrain(this));
    this.gameController.thePlayer.setEntityId(p_147282_1_.func_149197_c());
    this.currentServerMaxPlayers = p_147282_1_.func_149193_h();
    this.gameController.playerController.setGameType(p_147282_1_.func_149198_e());
    this.gameController.gameSettings.sendSettingsToServer();
    this.netManager.scheduleOutboundPacket(new C17PacketCustomPayload("MC|Brand", ClientBrandRetriever.getClientModName().getBytes(Charsets.UTF_8)), new GenericFutureListener[0]);
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:15,代码来源:NetHandlerPlayClient.java


示例12: addServerInfoToCrashReport

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
/**
 * Adds the server info, including from theWorldServer, to the crash report.
 */
public CrashReport addServerInfoToCrashReport(CrashReport par1CrashReport)
{
    par1CrashReport = super.addServerInfoToCrashReport(par1CrashReport);
    par1CrashReport.getCategory().addCrashSectionCallable("Type", new Callable()
    {
        private static final String __OBFID = "CL_00001130";
        public String call()
        {
            return "Integrated Server (map_client.txt)";
        }
    });
    par1CrashReport.getCategory().addCrashSectionCallable("Is Modded", new Callable()
    {
        private static final String __OBFID = "CL_00001131";
        public String call()
        {
            String var1 = ClientBrandRetriever.getClientModName();

            if (!var1.equals("vanilla"))
            {
                return "Definitely; Client brand changed to \'" + var1 + "\'";
            }
            else
            {
                var1 = IntegratedServer.this.getServerModName();
                return !var1.equals("vanilla") ? "Definitely; Server brand changed to \'" + var1 + "\'" : (Minecraft.class.getSigners() == null ? "Very likely; Jar signature invalidated" : "Probably not. Jar signature remains and both client + server brands are untouched.");
            }
        }
    });
    return par1CrashReport;
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:35,代码来源:IntegratedServer.java


示例13: handleJoinGame

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
public void handleJoinGame(S01PacketJoinGame p_147282_1_)
{
    this.gameController.playerController = new PlayerControllerMP(this.gameController, this);
    this.clientWorldController = new WorldClient(this, new WorldSettings(0L, p_147282_1_.func_149198_e(), false, p_147282_1_.func_149195_d(), p_147282_1_.func_149196_i()), p_147282_1_.func_149194_f(), p_147282_1_.func_149192_g(), this.gameController.mcProfiler);
    this.clientWorldController.isRemote = true;
    this.gameController.loadWorld(this.clientWorldController);
    this.gameController.thePlayer.dimension = p_147282_1_.func_149194_f();
    this.gameController.displayGuiScreen(new GuiDownloadTerrain(this));
    this.gameController.thePlayer.setEntityId(p_147282_1_.func_149197_c());
    this.currentServerMaxPlayers = p_147282_1_.func_149193_h();
    this.gameController.playerController.setGameType(p_147282_1_.func_149198_e());
    this.gameController.gameSettings.sendSettingsToServer();
    this.netManager.scheduleOutboundPacket(new C17PacketCustomPayload("MC|Brand", ClientBrandRetriever.getClientModName().getBytes(Charsets.UTF_8)), new GenericFutureListener[0]);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:15,代码来源:NetHandlerPlayClient.java


示例14: addServerInfoToCrashReport

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
public CrashReport addServerInfoToCrashReport(CrashReport p_71230_1_)
{
    p_71230_1_ = super.addServerInfoToCrashReport(p_71230_1_);
    p_71230_1_.getCategory().addCrashSectionCallable("Type", new Callable()
    {
        private static final String __OBFID = "CL_00001130";
        public String call()
        {
            return "Integrated Server (map_client.txt)";
        }
    });
    p_71230_1_.getCategory().addCrashSectionCallable("Is Modded", new Callable()
    {
        private static final String __OBFID = "CL_00001131";
        public String call()
        {
            String s = ClientBrandRetriever.getClientModName();

            if (!s.equals("vanilla"))
            {
                return "Definitely; Client brand changed to \'" + s + "\'";
            }
            else
            {
                s = IntegratedServer.this.getServerModName();
                return !s.equals("vanilla") ? "Definitely; Server brand changed to \'" + s + "\'" : (Minecraft.class.getSigners() == null ? "Very likely; Jar signature invalidated" : "Probably not. Jar signature remains and both client + server brands are untouched.");
            }
        }
    });
    return p_71230_1_;
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:32,代码来源:IntegratedServer.java


示例15: func_72455_a

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
public void func_72455_a(Packet1Login p_72455_1_) {
   this.field_72563_h.field_71442_b = new PlayerControllerMP(this.field_72563_h, this);
   this.field_72563_h.field_71413_E.func_77450_a(StatList.field_75950_i, 1);
   this.field_72564_i = new WorldClient(this, new WorldSettings(0L, p_72455_1_.field_73557_d, false, p_72455_1_.field_73560_c, p_72455_1_.field_73559_b), p_72455_1_.field_73558_e, p_72455_1_.field_73555_f, this.field_72563_h.field_71424_I, this.field_72563_h.func_98033_al());
   this.field_72564_i.field_72995_K = true;
   this.field_72563_h.func_71403_a(this.field_72564_i);
   this.field_72563_h.field_71439_g.field_71093_bK = p_72455_1_.field_73558_e;
   this.field_72563_h.func_71373_a(new GuiDownloadTerrain(this));
   this.field_72563_h.field_71439_g.field_70157_k = p_72455_1_.field_73561_a;
   this.field_72556_d = p_72455_1_.field_73562_h;
   this.field_72563_h.field_71442_b.func_78746_a(p_72455_1_.field_73557_d);
   this.field_72563_h.field_71474_y.func_82879_c();
   this.field_72555_g.func_74429_a(new Packet250CustomPayload("MC|Brand", ClientBrandRetriever.getClientModName().getBytes(Charsets.UTF_8)));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:15,代码来源:NetClientHandler.java


示例16: func_76971_a

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
public String func_76971_a() {
   String var1 = ClientBrandRetriever.getClientModName();
   if(!var1.equals("vanilla")) {
      return "Definitely; Client brand changed to \'" + var1 + "\'";
   } else {
      var1 = this.field_76972_a.getServerModName();
      return !var1.equals("vanilla")?"Definitely; Server brand changed to \'" + var1 + "\'":(Minecraft.class.getSigners() == null?"Very likely; Jar signature invalidated":"Probably not. Jar signature remains and both client + server brands are untouched.");
   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:10,代码来源:CallableIsModded.java


示例17: getMinecraftIsModded

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
/**
 * Gets if your Minecraft is Modded.
 */
public String getMinecraftIsModded()
{
    String s = ClientBrandRetriever.getClientModName();

    if (!s.equals("vanilla"))
    {
        return "Definitely; Client brand changed to \'" + s + "\'";
    }
    else
    {
        s = this.theIntegratedServer.getServerModName();
        return !s.equals("vanilla") ? "Definitely; Server brand changed to \'" + s + "\'" : (Minecraft.class.getSigners() == null ? "Very likely; Jar signature invalidated" : "Probably not. Jar signature remains and both client + server brands are untouched.");
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:18,代码来源:CallableIsModded.java


示例18: call

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
@SuppressWarnings("incomplete-switch")
protected List<String> call()
{
    BlockPos blockpos = new BlockPos(this.mc.getRenderViewEntity().posX, this.mc.getRenderViewEntity().getEntityBoundingBox().minY, this.mc.getRenderViewEntity().posZ);

    if (this.isReducedDebug())
    {
        return Lists.newArrayList(new String[] {"Minecraft 1.8.8 (" + this.mc.getVersion() + "/" + ClientBrandRetriever.getClientModName() + ")", this.mc.debug, this.mc.renderGlobal.getDebugInfoRenders(), this.mc.renderGlobal.getDebugInfoEntities(), "P: " + this.mc.effectRenderer.getStatistics() + ". T: " + this.mc.theWorld.getDebugLoadedEntities(), this.mc.theWorld.getProviderName(), "", String.format("Chunk-relative: %d %d %d", new Object[]{Integer.valueOf(blockpos.getX() & 15), Integer.valueOf(blockpos.getY() & 15), Integer.valueOf(blockpos.getZ() & 15)})});
    }
    else
    {
        Entity entity = this.mc.getRenderViewEntity();
        EnumFacing enumfacing = entity.getHorizontalFacing();
        String s = "Invalid";

        switch (enumfacing)
        {
            case NORTH:
                s = "Towards negative Z";
                break;

            case SOUTH:
                s = "Towards positive Z";
                break;

            case WEST:
                s = "Towards negative X";
                break;

            case EAST:
                s = "Towards positive X";
        }

        List<String> list = Lists.newArrayList(new String[] {"Minecraft 1.8.8 (" + this.mc.getVersion() + "/" + ClientBrandRetriever.getClientModName() + ")", this.mc.debug, this.mc.renderGlobal.getDebugInfoRenders(), this.mc.renderGlobal.getDebugInfoEntities(), "P: " + this.mc.effectRenderer.getStatistics() + ". T: " + this.mc.theWorld.getDebugLoadedEntities(), this.mc.theWorld.getProviderName(), "", String.format("XYZ: %.3f / %.5f / %.3f", new Object[]{Double.valueOf(this.mc.getRenderViewEntity().posX), Double.valueOf(this.mc.getRenderViewEntity().getEntityBoundingBox().minY), Double.valueOf(this.mc.getRenderViewEntity().posZ)}), String.format("Block: %d %d %d", new Object[]{Integer.valueOf(blockpos.getX()), Integer.valueOf(blockpos.getY()), Integer.valueOf(blockpos.getZ())}), String.format("Chunk: %d %d %d in %d %d %d", new Object[]{Integer.valueOf(blockpos.getX() & 15), Integer.valueOf(blockpos.getY() & 15), Integer.valueOf(blockpos.getZ() & 15), Integer.valueOf(blockpos.getX() >> 4), Integer.valueOf(blockpos.getY() >> 4), Integer.valueOf(blockpos.getZ() >> 4)}), String.format("Facing: %s (%s) (%.1f / %.1f)", new Object[]{enumfacing, s, Float.valueOf(MathHelper.wrapAngleTo180_float(entity.rotationYaw)), Float.valueOf(MathHelper.wrapAngleTo180_float(entity.rotationPitch))})});

        if (this.mc.theWorld != null && this.mc.theWorld.isBlockLoaded(blockpos))
        {
            Chunk chunk = this.mc.theWorld.getChunkFromBlockCoords(blockpos);
            list.add("Biome: " + chunk.getBiome(blockpos, this.mc.theWorld.getWorldChunkManager()).biomeName);
            list.add("Light: " + chunk.getLightSubtracted(blockpos, 0) + " (" + chunk.getLightFor(EnumSkyBlock.SKY, blockpos) + " sky, " + chunk.getLightFor(EnumSkyBlock.BLOCK, blockpos) + " block)");
            DifficultyInstance difficultyinstance = this.mc.theWorld.getDifficultyForLocation(blockpos);

            if (this.mc.isIntegratedServerRunning() && this.mc.getIntegratedServer() != null)
            {
                EntityPlayerMP entityplayermp = this.mc.getIntegratedServer().getConfigurationManager().getPlayerByUUID(this.mc.thePlayer.getUniqueID());

                if (entityplayermp != null)
                {
                    difficultyinstance = entityplayermp.worldObj.getDifficultyForLocation(new BlockPos(entityplayermp));
                }
            }

            list.add(String.format("Local Difficulty: %.2f (Day %d)", new Object[] {Float.valueOf(difficultyinstance.getAdditionalDifficulty()), Long.valueOf(this.mc.theWorld.getWorldTime() / 24000L)}));
        }

        if (this.mc.entityRenderer != null && this.mc.entityRenderer.isShaderActive())
        {
            list.add("Shader: " + this.mc.entityRenderer.getShaderGroup().getShaderGroupName());
        }

        if (this.mc.objectMouseOver != null && this.mc.objectMouseOver.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && this.mc.objectMouseOver.getBlockPos() != null)
        {
            BlockPos blockpos1 = this.mc.objectMouseOver.getBlockPos();
            list.add(String.format("Looking at: %d %d %d", new Object[] {Integer.valueOf(blockpos1.getX()), Integer.valueOf(blockpos1.getY()), Integer.valueOf(blockpos1.getZ())}));
        }

        return list;
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:70,代码来源:GuiOverlayDebug.java


示例19: call

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
protected List call()
{
    BlockPos blockpos = new BlockPos(this.mc.getRenderViewEntity().posX, this.mc.getRenderViewEntity().getEntityBoundingBox().minY, this.mc.getRenderViewEntity().posZ);

    if (this.isReducedDebug())
    {
        return Lists.newArrayList(new String[] {"Minecraft 1.8.8 (" + this.mc.getVersion() + "/" + ClientBrandRetriever.getClientModName() + ")", this.mc.debug, this.mc.renderGlobal.getDebugInfoRenders(), this.mc.renderGlobal.getDebugInfoEntities(), "P: " + this.mc.effectRenderer.getStatistics() + ". T: " + this.mc.theWorld.getDebugLoadedEntities(), this.mc.theWorld.getProviderName(), "", String.format("Chunk-relative: %d %d %d", new Object[]{Integer.valueOf(blockpos.getX() & 15), Integer.valueOf(blockpos.getY() & 15), Integer.valueOf(blockpos.getZ() & 15)})});
    }
    else
    {
        Entity entity = this.mc.getRenderViewEntity();
        EnumFacing enumfacing = entity.getHorizontalFacing();
        String s = "Invalid";

        switch (GuiOverlayDebug.GuiOverlayDebug$1.field_178907_a[enumfacing.ordinal()])
        {
            case 1:
                s = "Towards negative Z";
                break;

            case 2:
                s = "Towards positive Z";
                break;

            case 3:
                s = "Towards negative X";
                break;

            case 4:
                s = "Towards positive X";
        }

        ArrayList arraylist = Lists.newArrayList(new String[] {"Minecraft 1.8.8 (" + this.mc.getVersion() + "/" + ClientBrandRetriever.getClientModName() + ")", this.mc.debug, this.mc.renderGlobal.getDebugInfoRenders(), this.mc.renderGlobal.getDebugInfoEntities(), "P: " + this.mc.effectRenderer.getStatistics() + ". T: " + this.mc.theWorld.getDebugLoadedEntities(), this.mc.theWorld.getProviderName(), "", String.format("XYZ: %.3f / %.5f / %.3f", new Object[]{Double.valueOf(this.mc.getRenderViewEntity().posX), Double.valueOf(this.mc.getRenderViewEntity().getEntityBoundingBox().minY), Double.valueOf(this.mc.getRenderViewEntity().posZ)}), String.format("Block: %d %d %d", new Object[]{Integer.valueOf(blockpos.getX()), Integer.valueOf(blockpos.getY()), Integer.valueOf(blockpos.getZ())}), String.format("Chunk: %d %d %d in %d %d %d", new Object[]{Integer.valueOf(blockpos.getX() & 15), Integer.valueOf(blockpos.getY() & 15), Integer.valueOf(blockpos.getZ() & 15), Integer.valueOf(blockpos.getX() >> 4), Integer.valueOf(blockpos.getY() >> 4), Integer.valueOf(blockpos.getZ() >> 4)}), String.format("Facing: %s (%s) (%.1f / %.1f)", new Object[]{enumfacing, s, Float.valueOf(MathHelper.wrapAngleTo180_float(entity.rotationYaw)), Float.valueOf(MathHelper.wrapAngleTo180_float(entity.rotationPitch))})});

        if (this.mc.theWorld != null && this.mc.theWorld.isBlockLoaded(blockpos))
        {
            Chunk chunk = this.mc.theWorld.getChunkFromBlockCoords(blockpos);
            arraylist.add("Biome: " + chunk.getBiome(blockpos, this.mc.theWorld.getWorldChunkManager()).biomeName);
            arraylist.add("Light: " + chunk.getLightSubtracted(blockpos, 0) + " (" + chunk.getLightFor(EnumSkyBlock.SKY, blockpos) + " sky, " + chunk.getLightFor(EnumSkyBlock.BLOCK, blockpos) + " block)");
            DifficultyInstance difficultyinstance = this.mc.theWorld.getDifficultyForLocation(blockpos);

            if (this.mc.isIntegratedServerRunning() && this.mc.getIntegratedServer() != null)
            {
                EntityPlayerMP entityplayermp = this.mc.getIntegratedServer().getConfigurationManager().getPlayerByUUID(this.mc.thePlayer.getUniqueID());

                if (entityplayermp != null)
                {
                    difficultyinstance = entityplayermp.worldObj.getDifficultyForLocation(new BlockPos(entityplayermp));
                }
            }

            arraylist.add(String.format("Local Difficulty: %.2f (Day %d)", new Object[] {Float.valueOf(difficultyinstance.getAdditionalDifficulty()), Long.valueOf(this.mc.theWorld.getWorldTime() / 24000L)}));
        }

        if (this.mc.entityRenderer != null && this.mc.entityRenderer.isShaderActive())
        {
            arraylist.add("Shader: " + this.mc.entityRenderer.getShaderGroup().getShaderGroupName());
        }

        if (this.mc.objectMouseOver != null && this.mc.objectMouseOver.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK && this.mc.objectMouseOver.getBlockPos() != null)
        {
            BlockPos blockpos1 = this.mc.objectMouseOver.getBlockPos();
            arraylist.add(String.format("Looking at: %d %d %d", new Object[] {Integer.valueOf(blockpos1.getX()), Integer.valueOf(blockpos1.getY()), Integer.valueOf(blockpos1.getZ())}));
        }

        return arraylist;
    }
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:69,代码来源:GuiOverlayDebug.java


示例20: call

import net.minecraft.client.ClientBrandRetriever; //导入依赖的package包/类
@SuppressWarnings("incomplete-switch")
protected List<String> call()
{
    BlockPos blockpos = new BlockPos(this.mc.getRenderViewEntity().posX, this.mc.getRenderViewEntity().getEntityBoundingBox().minY, this.mc.getRenderViewEntity().posZ);

    if (this.mc.isReducedDebug())
    {
        return Lists.newArrayList(new String[] {"Minecraft 1.10.2 (" + this.mc.getVersion() + "/" + ClientBrandRetriever.getClientModName() + ")", this.mc.debug, this.mc.renderGlobal.getDebugInfoRenders(), this.mc.renderGlobal.getDebugInfoEntities(), "P: " + this.mc.effectRenderer.getStatistics() + ". T: " + this.mc.theWorld.getDebugLoadedEntities(), this.mc.theWorld.getProviderName(), "", String.format("Chunk-relative: %d %d %d", new Object[]{Integer.valueOf(blockpos.getX() & 15), Integer.valueOf(blockpos.getY() & 15), Integer.valueOf(blockpos.getZ() & 15)})});
    }
    else
    {
        Entity entity = this.mc.getRenderViewEntity();
        EnumFacing enumfacing = entity.getHorizontalFacing();
        String s = "Invalid";

        switch (enumfacing)
        {
            case NORTH:
                s = "Towards negative Z";
                break;
            case SOUTH:
                s = "Towards positive Z";
                break;
            case WEST:
                s = "Towards negative X";
                break;
            case EAST:
                s = "Towards positive X";
        }

        List<String> list = Lists.newArrayList(new String[] {"Minecraft 1.10.2 (" + this.mc.getVersion() + "/" + ClientBrandRetriever.getClientModName() + ("release".equalsIgnoreCase(this.mc.getVersionType()) ? "" : "/" + this.mc.getVersionType())  

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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