losing my mind

This commit is contained in:
ayunami2000 2022-01-21 20:12:31 -05:00
parent 56aeb213a6
commit 4017fbc580
20 changed files with 18980 additions and 18853 deletions

124
.idea/uiDesigner.xml Normal file
View File

@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>

View File

@ -78,6 +78,6 @@ teavm {
/** Add name of configurations here where to look for jarfiles. */ /** Add name of configurations here where to look for jarfiles. */
includeJarsFrom = []; includeJarsFrom = [];
/** By default teavmc taskd epends on javaCompile task, unless this varaibale is true. */ /** By default teavmc task depends on javaCompile task, unless this variable is true. */
skipJavaCompile = false; skipJavaCompile = false;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ import net.minecraft.src.*;
import me.ayunami2000.ayuncraft.CryptManager; import me.ayunami2000.ayuncraft.CryptManager;
import org.bouncycastle.crypto.BufferedBlockCipher; import org.bouncycastle.crypto.BufferedBlockCipher;
import javax.crypto.SecretKey; import me.ayunami2000.ayuncraft.javax.crypto.SecretKey;
public class WebsocketNetworkManager implements INetworkManager { public class WebsocketNetworkManager implements INetworkManager {
private boolean isInputBeingDecrypted; private boolean isInputBeingDecrypted;

View File

@ -3,19 +3,16 @@ package net.minecraft.src;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.DataInputStream; import java.io.DataInputStream;
import java.io.IOException; import java.io.IOException;
import java.math.BigInteger; import me.ayunami2000.ayuncraft.java.security.PublicKey;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.util.*; import java.util.*;
import me.ayunami2000.ayuncraft.CryptManager; import me.ayunami2000.ayuncraft.CryptManager;
import net.lax1dude.eaglercraft.DefaultSkinRenderer; import net.lax1dude.eaglercraft.DefaultSkinRenderer;
import net.lax1dude.eaglercraft.EaglerAdapter; import net.lax1dude.eaglercraft.EaglerAdapter;
import net.lax1dude.eaglercraft.EaglerProfile;
import net.lax1dude.eaglercraft.WebsocketNetworkManager; import net.lax1dude.eaglercraft.WebsocketNetworkManager;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import javax.crypto.SecretKey; import me.ayunami2000.ayuncraft.javax.crypto.SecretKey;
public class NetClientHandler extends NetHandler { public class NetClientHandler extends NetHandler {

View File

@ -36,11 +36,13 @@ public class Packet250CustomPayload extends Packet {
* Abstract. Reads the raw packet data from the data stream. * Abstract. Reads the raw packet data from the data stream.
*/ */
public void readPacketData(DataInputStream par1DataInputStream) throws IOException { public void readPacketData(DataInputStream par1DataInputStream) throws IOException {
if(!Minecraft.getMinecraft().gameSettings.useDefaultProtocol) {
this.channel = readString(par1DataInputStream, 20); this.channel = readString(par1DataInputStream, 20);
this.length = par1DataInputStream.readShort(); this.length = par1DataInputStream.readShort();
if (this.length > 0 && this.length < 32767) { if (this.length > 0 && this.length < 32767) {
if(Minecraft.getMinecraft().gameSettings.useDefaultProtocol){
par1DataInputStream.skipBytes(this.length);
}else {
this.data = new byte[this.length]; this.data = new byte[this.length];
par1DataInputStream.readFully(this.data); par1DataInputStream.readFully(this.data);
} }

View File

@ -5,9 +5,9 @@ import me.ayunami2000.ayuncraft.CryptManager;
import java.io.DataInputStream; import java.io.DataInputStream;
import java.io.DataOutputStream; import java.io.DataOutputStream;
import java.io.IOException; import java.io.IOException;
import java.security.PrivateKey; import me.ayunami2000.ayuncraft.java.security.PrivateKey;
import java.security.PublicKey; import me.ayunami2000.ayuncraft.java.security.PublicKey;
import javax.crypto.SecretKey; import me.ayunami2000.ayuncraft.javax.crypto.SecretKey;
public class Packet252SharedKey extends Packet public class Packet252SharedKey extends Packet
{ {

View File

@ -5,7 +5,7 @@ import me.ayunami2000.ayuncraft.CryptManager;
import java.io.DataInputStream; import java.io.DataInputStream;
import java.io.DataOutputStream; import java.io.DataOutputStream;
import java.io.IOException; import java.io.IOException;
import java.security.PublicKey; import me.ayunami2000.ayuncraft.java.security.PublicKey;
public class Packet253ServerAuthData extends Packet public class Packet253ServerAuthData extends Packet
{ {

View File

@ -1,6 +0,0 @@
package javax.crypto;
import java.security.Key;
public interface SecretKey extends Key {
}

View File

@ -3,9 +3,9 @@ package me.ayunami2000.ayuncraft;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.math.BigInteger; import java.math.BigInteger;
import java.security.Key; import me.ayunami2000.ayuncraft.java.security.Key;
import java.security.PrivateKey; import me.ayunami2000.ayuncraft.java.security.PrivateKey;
import java.security.PublicKey; import me.ayunami2000.ayuncraft.java.security.PublicKey;
import org.bouncycastle.crypto.BufferedBlockCipher; import org.bouncycastle.crypto.BufferedBlockCipher;
import org.bouncycastle.crypto.engines.AESFastEngine; import org.bouncycastle.crypto.engines.AESFastEngine;
@ -15,8 +15,8 @@ import org.bouncycastle.crypto.modes.CFBBlockCipher;
import org.bouncycastle.crypto.params.KeyParameter; import org.bouncycastle.crypto.params.KeyParameter;
import org.bouncycastle.crypto.params.ParametersWithIV; import org.bouncycastle.crypto.params.ParametersWithIV;
import javax.crypto.SecretKey; import me.ayunami2000.ayuncraft.javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec; import me.ayunami2000.ayuncraft.javax.crypto.spec.SecretKeySpec;
public class CryptManager public class CryptManager
{ {

View File

@ -1,6 +1,6 @@
package me.ayunami2000.ayuncraft; package me.ayunami2000.ayuncraft;
import java.security.PublicKey; import me.ayunami2000.ayuncraft.java.security.PublicKey;
public class ModifiablePublicKey implements PublicKey { public class ModifiablePublicKey implements PublicKey {
private String algorithm; private String algorithm;

View File

@ -23,7 +23,7 @@
* *
*/ */
package java.security; package me.ayunami2000.ayuncraft.java.security;
public interface Key { public interface Key {
public String getAlgorithm(); public String getAlgorithm();

View File

@ -23,7 +23,9 @@
* *
*/ */
package java.security; package me.ayunami2000.ayuncraft.java.security;
public interface PrivateKey extends Key, javax.security.auth.Destroyable { import me.ayunami2000.ayuncraft.javax.security.auth.Destroyable;
public interface PrivateKey extends Key, Destroyable {
} }

View File

@ -23,7 +23,7 @@
* *
*/ */
package java.security; package me.ayunami2000.ayuncraft.java.security;
public interface PublicKey extends Key { public interface PublicKey extends Key {
} }

View File

@ -23,6 +23,6 @@
* *
*/ */
package java.security.spec; package me.ayunami2000.ayuncraft.java.security.spec;
public interface KeySpec { } public interface KeySpec { }

View File

@ -0,0 +1,6 @@
package me.ayunami2000.ayuncraft.javax.crypto;
import me.ayunami2000.ayuncraft.java.security.Key;
public interface SecretKey extends Key {
}

View File

@ -1,7 +1,7 @@
package javax.crypto.spec; package me.ayunami2000.ayuncraft.javax.crypto.spec;
import java.security.spec.KeySpec; import me.ayunami2000.ayuncraft.java.security.spec.KeySpec;
import javax.crypto.SecretKey; import me.ayunami2000.ayuncraft.javax.crypto.SecretKey;
public class SecretKeySpec implements KeySpec, SecretKey { public class SecretKeySpec implements KeySpec, SecretKey {
private String algorithm; private String algorithm;

View File

@ -23,7 +23,7 @@
* *
*/ */
package javax.security.auth; package me.ayunami2000.ayuncraft.javax.security.auth;
public class DestroyFailedException extends Exception { public class DestroyFailedException extends Exception {

View File

@ -23,7 +23,7 @@
* *
*/ */
package javax.security.auth; package me.ayunami2000.ayuncraft.javax.security.auth;
public interface Destroyable { public interface Destroyable {
public default void destroy() throws DestroyFailedException { public default void destroy() throws DestroyFailedException {