本文整理汇总了Java中net.minecraft.client.ClientBrandRetriever类的典型用法代码示例。如果您正苦于以下问题:Java ClientBrandRetriever类的具体用法?Java ClientBrandRetriever怎么用?Java ClientBrandRetriever使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ClientBrandRetriever类属于net.minecraft.client包,在下文中一共展示了ClientBrandRetriever类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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())));
}
示例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())));
}
示例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())));
}
示例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())));
}
示例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())));
}
示例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()));
}
示例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)));
}
示例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;
}
示例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;
}
示例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;
}
示例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]);
}
示例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;
}
示例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]);
}
示例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_;
}
示例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)));
}