mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 08:57:42 +00:00
250 errors
This commit is contained in:
@@ -1,99 +0,0 @@
|
||||
package net.minecraft.client.main;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.Authenticator;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.Proxy;
|
||||
import java.net.Proxy.Type;
|
||||
import java.util.List;
|
||||
import joptsimple.ArgumentAcceptingOptionSpec;
|
||||
import joptsimple.NonOptionArgumentSpec;
|
||||
import joptsimple.OptionParser;
|
||||
import joptsimple.OptionSet;
|
||||
import net.minecraft.src.MainProxyAuthenticator;
|
||||
import net.minecraft.src.MainShutdownHook;
|
||||
import net.minecraft.src.Minecraft;
|
||||
import net.minecraft.src.Session;
|
||||
|
||||
public class Main
|
||||
{
|
||||
public static void main(String[] par0ArrayOfStr)
|
||||
{
|
||||
System.setProperty("java.net.preferIPv4Stack", "true");
|
||||
OptionParser var1 = new OptionParser();
|
||||
var1.allowsUnrecognizedOptions();
|
||||
var1.accepts("demo");
|
||||
var1.accepts("fullscreen");
|
||||
ArgumentAcceptingOptionSpec var2 = var1.accepts("server").withRequiredArg();
|
||||
ArgumentAcceptingOptionSpec var3 = var1.accepts("port").withRequiredArg().ofType(Integer.class).defaultsTo(Integer.valueOf(25565), new Integer[0]);
|
||||
ArgumentAcceptingOptionSpec var4 = var1.accepts("gameDir").withRequiredArg().ofType(File.class).defaultsTo(new File("."), new File[0]);
|
||||
ArgumentAcceptingOptionSpec var5 = var1.accepts("assetsDir").withRequiredArg().ofType(File.class).defaultsTo(new File("lwjgl-rundir/resources/assets"), new File[0]);
|
||||
ArgumentAcceptingOptionSpec var6 = var1.accepts("resourcePackDir").withRequiredArg().ofType(File.class);
|
||||
ArgumentAcceptingOptionSpec var7 = var1.accepts("proxyHost").withRequiredArg();
|
||||
ArgumentAcceptingOptionSpec var8 = var1.accepts("proxyPort").withRequiredArg().defaultsTo("8080", new String[0]).ofType(Integer.class);
|
||||
ArgumentAcceptingOptionSpec var9 = var1.accepts("proxyUser").withRequiredArg();
|
||||
ArgumentAcceptingOptionSpec var10 = var1.accepts("proxyPass").withRequiredArg();
|
||||
ArgumentAcceptingOptionSpec var11 = var1.accepts("username").withRequiredArg().defaultsTo("DefaultClientTest");
|
||||
ArgumentAcceptingOptionSpec var12 = var1.accepts("session").withRequiredArg();
|
||||
ArgumentAcceptingOptionSpec var13 = var1.accepts("version").withRequiredArg().defaultsTo("1.6.4");
|
||||
ArgumentAcceptingOptionSpec var14 = var1.accepts("width").withRequiredArg().ofType(Integer.class).defaultsTo(Integer.valueOf(854), new Integer[0]);
|
||||
ArgumentAcceptingOptionSpec var15 = var1.accepts("height").withRequiredArg().ofType(Integer.class).defaultsTo(Integer.valueOf(480), new Integer[0]);
|
||||
NonOptionArgumentSpec var16 = var1.nonOptions();
|
||||
OptionSet var17 = var1.parse(par0ArrayOfStr);
|
||||
List var18 = var17.valuesOf(var16);
|
||||
String var19 = (String)var17.valueOf(var7);
|
||||
Proxy var20 = Proxy.NO_PROXY;
|
||||
|
||||
if (var19 != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
var20 = new Proxy(Type.SOCKS, new InetSocketAddress(var19, ((Integer)var17.valueOf(var8)).intValue()));
|
||||
}
|
||||
catch (Exception var34)
|
||||
{
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
String var21 = (String)var17.valueOf(var9);
|
||||
String var22 = (String)var17.valueOf(var10);
|
||||
|
||||
if (!var20.equals(Proxy.NO_PROXY) && func_110121_a(var21) && func_110121_a(var22))
|
||||
{
|
||||
Authenticator.setDefault(new MainProxyAuthenticator(var21, var22));
|
||||
}
|
||||
|
||||
int var23 = ((Integer)var17.valueOf(var14)).intValue();
|
||||
int var24 = ((Integer)var17.valueOf(var15)).intValue();
|
||||
boolean var25 = var17.has("fullscreen");
|
||||
boolean var26 = var17.has("demo");
|
||||
String var27 = (String)var17.valueOf(var13);
|
||||
File var28 = (File)var17.valueOf(var4);
|
||||
File var29 = var17.has(var5) ? (File)var17.valueOf(var5) : new File(var28, "assets/");
|
||||
File var30 = var17.has(var6) ? (File)var17.valueOf(var6) : new File(var28, "resourcepacks/");
|
||||
Session var31 = new Session((String)var11.value(var17), (String)var12.value(var17));
|
||||
Minecraft var32 = new Minecraft(var31, var23, var24, var25, var26, var28, var29, var30, var20, var27);
|
||||
String var33 = (String)var17.valueOf(var2);
|
||||
|
||||
if (var33 != null)
|
||||
{
|
||||
var32.setServer(var33, ((Integer)var17.valueOf(var3)).intValue());
|
||||
}
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(new MainShutdownHook());
|
||||
|
||||
if (!var18.isEmpty())
|
||||
{
|
||||
System.out.println("Completely ignored arguments: " + var18);
|
||||
}
|
||||
|
||||
Thread.currentThread().setName("Minecraft main thread");
|
||||
var32.run();
|
||||
}
|
||||
|
||||
private static boolean func_110121_a(String par0Str)
|
||||
{
|
||||
return par0Str != null && !par0Str.isEmpty();
|
||||
}
|
||||
}
|
||||
@@ -124,6 +124,30 @@ public class GameSettings
|
||||
/** Game settings language */
|
||||
public String language;
|
||||
|
||||
|
||||
/** Eagler settings */
|
||||
public boolean showSkinJacket = true;
|
||||
public boolean showSkinHat = true;
|
||||
public boolean showSkinLeftArm = true;
|
||||
public boolean showSkinRightArm = true;
|
||||
public boolean showSkinLeftLeg = true;
|
||||
public boolean showSkinRightLeg = true;
|
||||
|
||||
public boolean allowFNAWSkins = true;
|
||||
public boolean showOtherCapes = true;
|
||||
|
||||
public int chunkUpdatePerFrame = 0;
|
||||
|
||||
public int voiceListenRadius = 16;
|
||||
public float voiceListenVolume = 0.5f;
|
||||
public float voiceSpeakVolume = 0.5f;
|
||||
public int voicePTTKey = 47;
|
||||
|
||||
public boolean hideJoinCode = false;
|
||||
public int relayTimeout = 4;
|
||||
|
||||
public boolean adderall = false;
|
||||
|
||||
public GameSettings(Minecraft par1Minecraft, File par2File)
|
||||
{
|
||||
this.keyBindings = new KeyBinding[] {this.keyBindAttack, this.keyBindUseItem, this.keyBindForward, this.keyBindLeft, this.keyBindBack, this.keyBindRight, this.keyBindJump, this.keyBindSneak, this.keyBindDrop, this.keyBindInventory, this.keyBindChat, this.keyBindPlayerList, this.keyBindPickBlock, this.keyBindCommand};
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import net.lax1dude.eaglercraft.DefaultSkinRenderer;
|
||||
import net.lax1dude.eaglercraft.EaglerAdapter;
|
||||
import net.lax1dude.eaglercraft.EaglerProfile;
|
||||
import net.lax1dude.eaglercraft.GuiScreenEditProfile;
|
||||
import net.lax1dude.eaglercraft.GuiScreenSingleplayerConnecting;
|
||||
import net.lax1dude.eaglercraft.GuiScreenSingleplayerLoading;
|
||||
import net.lax1dude.eaglercraft.GuiScreenVSyncWarning;
|
||||
import net.lax1dude.eaglercraft.GuiVoiceOverlay;
|
||||
import net.lax1dude.eaglercraft.IntegratedServer;
|
||||
import net.lax1dude.eaglercraft.IntegratedServerLAN;
|
||||
import net.lax1dude.eaglercraft.Voice;
|
||||
import net.lax1dude.eaglercraft.WorkerNetworkManager;
|
||||
import net.lax1dude.eaglercraft.adapter.Tessellator;
|
||||
import net.lax1dude.eaglercraft.glemu.FixedFunctionShader;
|
||||
import com.google.common.collect.Lists;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.File;
|
||||
@@ -43,7 +57,7 @@ public class Minecraft implements IPlayerUsage
|
||||
private ServerData currentServerData;
|
||||
|
||||
/** The RenderEngine instance used by Minecraft */
|
||||
private TextureManager renderEngine;
|
||||
public RenderEngine renderEngine;
|
||||
|
||||
/**
|
||||
* Set to 'this' in Minecraft constructor; used by some settings get methods
|
||||
@@ -186,29 +200,16 @@ public class Minecraft implements IPlayerUsage
|
||||
/** Profiler currently displayed in the debug screen pie chart */
|
||||
private String debugProfilerName = "root";
|
||||
|
||||
public Minecraft(Session par1Session, int par2, int par3, boolean par4, boolean par5, File par6File, File par7File, File par8File, Proxy par9Proxy, String par10Str)
|
||||
public Minecraft()
|
||||
{
|
||||
theMinecraft = this;
|
||||
this.mcLogAgent = new LogAgent("Minecraft-Client", " [CLIENT]", null);
|
||||
this.mcDataDir = par6File;
|
||||
this.fileAssets = par7File;
|
||||
this.fileResourcepacks = par8File;
|
||||
this.launchedVersion = par10Str;
|
||||
this.mcDefaultResourcePack = new DefaultResourcePack(this.fileAssets);
|
||||
this.addDefaultResourcePack();
|
||||
this.proxy = par9Proxy;
|
||||
this.startTimerHackThread();
|
||||
this.session = par1Session;
|
||||
this.mcLogAgent.logInfo("Setting user: " + par1Session.getUsername());
|
||||
this.mcLogAgent.logInfo("(Session ID is " + par1Session.getSessionID() + ")");
|
||||
this.isDemo = par5;
|
||||
this.displayWidth = par2;
|
||||
this.displayHeight = par3;
|
||||
this.tempDisplayWidth = par2;
|
||||
this.tempDisplayHeight = par3;
|
||||
this.fullscreen = par4;
|
||||
ImageIO.setUseCache(false);
|
||||
//StatList.nopInit();
|
||||
this.tempDisplayHeight = 480;
|
||||
this.fullscreen = false;
|
||||
Packet3Chat.maxChatLength = 32767;
|
||||
this.startTimerHackThread();
|
||||
this.displayWidth = 854;
|
||||
this.displayHeight = 480;
|
||||
this.fullscreen = false;
|
||||
theMinecraft = this;
|
||||
}
|
||||
|
||||
private void startTimerHackThread()
|
||||
|
||||
@@ -54,7 +54,7 @@ public class StringTranslate
|
||||
/**
|
||||
* Return the StringTranslate singleton instance
|
||||
*/
|
||||
static StringTranslate getInstance()
|
||||
public static StringTranslate getInstance()
|
||||
{
|
||||
return instance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user