Update #47 - Singleplayer lag fixes

This commit is contained in:
lax1dude
2025-01-19 13:26:27 -08:00
parent 3f5ee57068
commit 1f0d593a8c
2052 changed files with 133581 additions and 2339 deletions

View File

@ -2,7 +2,7 @@ package net.lax1dude.eaglercraft.v1_8.internal.buffer;
/**
* Copyright (c) 2022 lax1dude. All Rights Reserved.
* Copyright (c) 2022-2025 lax1dude. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@ -16,88 +16,100 @@ package net.lax1dude.eaglercraft.v1_8.internal.buffer;
* POSSIBILITY OF SUCH DAMAGE.
*
*/
public interface ByteBuffer extends Buffer {
public abstract class ByteBuffer implements Buffer {
ByteBuffer duplicate();
public abstract ByteBuffer duplicate();
byte get();
public abstract byte get();
ByteBuffer put(byte b);
public abstract ByteBuffer put(byte b);
byte get(int index);
public abstract byte get(int index);
ByteBuffer put(int index, byte b);
public abstract ByteBuffer put(int index, byte b);
ByteBuffer get(byte[] dst, int offset, int length);
public abstract ByteBuffer get(byte[] dst, int offset, int length);
ByteBuffer get(byte[] dst);
public abstract ByteBuffer get(byte[] dst);
ByteBuffer put(ByteBuffer src);
public abstract ByteBuffer put(ByteBuffer src);
ByteBuffer put(byte[] src, int offset, int length);
public abstract ByteBuffer put(byte[] src, int offset, int length);
ByteBuffer put(byte[] src);
public abstract ByteBuffer put(byte[] src);
char getChar();
public abstract char getChar();
ByteBuffer putChar(char value);
public abstract ByteBuffer putChar(char value);
char getChar(int index);
public abstract char getChar(int index);
ByteBuffer putChar(int index, char value);
public abstract ByteBuffer putChar(int index, char value);
short getShort();
public abstract short getShort();
ByteBuffer putShort(short value);
public abstract ByteBuffer putShort(short value);
short getShort(int index);
public abstract short getShort(int index);
ByteBuffer putShort(int index, short value);
public abstract ByteBuffer putShort(int index, short value);
ShortBuffer asShortBuffer();
public abstract ShortBuffer asShortBuffer();
int getInt();
public abstract int getInt();
ByteBuffer putInt(int value);
public abstract ByteBuffer putInt(int value);
int getInt(int index);
public abstract int getInt(int index);
ByteBuffer putInt(int index, int value);
public abstract ByteBuffer putInt(int index, int value);
IntBuffer asIntBuffer();
public abstract IntBuffer asIntBuffer();
long getLong();
public abstract long getLong();
ByteBuffer putLong(long value);
public abstract ByteBuffer putLong(long value);
long getLong(int index);
public abstract long getLong(int index);
ByteBuffer putLong(int index, long value);
public abstract ByteBuffer putLong(int index, long value);
float getFloat();
public abstract float getFloat();
ByteBuffer putFloat(float value);
public abstract ByteBuffer putFloat(float value);
float getFloat(int index);
public abstract float getFloat(int index);
ByteBuffer putFloat(int index, float value);
public abstract ByteBuffer putFloat(int index, float value);
FloatBuffer asFloatBuffer();
public abstract FloatBuffer asFloatBuffer();
ByteBuffer mark();
public abstract ByteBuffer mark();
ByteBuffer reset();
public abstract ByteBuffer reset();
ByteBuffer clear();
public abstract ByteBuffer clear();
ByteBuffer flip();
public abstract ByteBuffer flip();
ByteBuffer rewind();
public abstract ByteBuffer rewind();
ByteBuffer limit(int newLimit);
public abstract ByteBuffer limit(int newLimit);
ByteBuffer position(int newPosition);
public abstract int limit();
byte[] array();
public abstract ByteBuffer position(int newPosition);
public abstract int position();
public abstract int remaining();
public abstract boolean hasRemaining();
public abstract int capacity();
public abstract boolean hasArray();
public abstract byte[] array();
}

View File

@ -1,7 +1,7 @@
package net.lax1dude.eaglercraft.v1_8.internal.buffer;
/**
* Copyright (c) 2022 lax1dude. All Rights Reserved.
* Copyright (c) 2022-2025 lax1dude. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@ -15,49 +15,61 @@ package net.lax1dude.eaglercraft.v1_8.internal.buffer;
* POSSIBILITY OF SUCH DAMAGE.
*
*/
public interface FloatBuffer extends Buffer {
public abstract class FloatBuffer implements Buffer {
FloatBuffer duplicate();
public abstract FloatBuffer duplicate();
float get();
public abstract float get();
FloatBuffer put(float b);
public abstract FloatBuffer put(float b);
float get(int index);
public abstract float get(int index);
FloatBuffer put(int index, float b);
public abstract FloatBuffer put(int index, float b);
float getElement(int index);
public abstract float getElement(int index);
void putElement(int index, float value);
public abstract void putElement(int index, float value);
FloatBuffer get(float[] dst, int offset, int length);
public abstract FloatBuffer get(float[] dst, int offset, int length);
FloatBuffer get(float[] dst);
public abstract FloatBuffer get(float[] dst);
FloatBuffer put(FloatBuffer src);
public abstract FloatBuffer put(FloatBuffer src);
FloatBuffer put(float[] src, int offset, int length);
public abstract FloatBuffer put(float[] src, int offset, int length);
FloatBuffer put(float[] src);
public abstract FloatBuffer put(float[] src);
boolean isDirect();
public abstract boolean isDirect();
FloatBuffer mark();
public abstract FloatBuffer mark();
FloatBuffer reset();
public abstract FloatBuffer reset();
FloatBuffer clear();
public abstract FloatBuffer clear();
FloatBuffer flip();
public abstract FloatBuffer flip();
FloatBuffer rewind();
public abstract FloatBuffer rewind();
FloatBuffer limit(int newLimit);
public abstract FloatBuffer limit(int newLimit);
FloatBuffer position(int newPosition);
public abstract int limit();
float[] array();
public abstract FloatBuffer position(int newPosition);
public abstract int position();
public abstract int remaining();
public abstract boolean hasRemaining();
public abstract int capacity();
public abstract boolean hasArray();
public abstract float[] array();
}

View File

@ -15,49 +15,61 @@ package net.lax1dude.eaglercraft.v1_8.internal.buffer;
* POSSIBILITY OF SUCH DAMAGE.
*
*/
public interface IntBuffer extends Buffer {
public abstract class IntBuffer implements Buffer {
IntBuffer duplicate();
public abstract IntBuffer duplicate();
int get();
public abstract int get();
IntBuffer put(int b);
public abstract IntBuffer put(int b);
int get(int index);
public abstract int get(int index);
IntBuffer put(int index, int b);
public abstract IntBuffer put(int index, int b);
int getElement(int index);
public abstract int getElement(int index);
void putElement(int index, int value);
public abstract void putElement(int index, int value);
IntBuffer get(int[] dst, int offset, int length);
public abstract IntBuffer get(int[] dst, int offset, int length);
IntBuffer get(int[] dst);
public abstract IntBuffer get(int[] dst);
IntBuffer put(IntBuffer src);
public abstract IntBuffer put(IntBuffer src);
IntBuffer put(int[] src, int offset, int length);
public abstract IntBuffer put(int[] src, int offset, int length);
IntBuffer put(int[] src);
public abstract IntBuffer put(int[] src);
boolean isDirect();
public abstract boolean isDirect();
IntBuffer mark();
public abstract IntBuffer mark();
IntBuffer reset();
public abstract IntBuffer reset();
IntBuffer clear();
public abstract IntBuffer clear();
IntBuffer flip();
public abstract IntBuffer flip();
IntBuffer rewind();
public abstract IntBuffer rewind();
IntBuffer limit(int newLimit);
public abstract IntBuffer limit(int newLimit);
IntBuffer position(int newPosition);
public abstract int limit();
int[] array();
public abstract IntBuffer position(int newPosition);
public abstract int position();
public abstract int remaining();
public abstract boolean hasRemaining();
public abstract int capacity();
public abstract boolean hasArray();
public abstract int[] array();
}

View File

@ -1,7 +1,7 @@
package net.lax1dude.eaglercraft.v1_8.internal.buffer;
/**
* Copyright (c) 2022 lax1dude. All Rights Reserved.
* Copyright (c) 2022-2025 lax1dude. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@ -15,48 +15,60 @@ package net.lax1dude.eaglercraft.v1_8.internal.buffer;
* POSSIBILITY OF SUCH DAMAGE.
*
*/
public interface ShortBuffer extends Buffer {
public abstract class ShortBuffer implements Buffer {
ShortBuffer duplicate();
public abstract ShortBuffer duplicate();
short get();
public abstract short get();
ShortBuffer put(short b);
public abstract ShortBuffer put(short b);
short get(int index);
public abstract short get(int index);
ShortBuffer put(int index, short b);
public abstract ShortBuffer put(int index, short b);
short getElement(int index);
public abstract short getElement(int index);
void putElement(int index, short value);
public abstract void putElement(int index, short value);
ShortBuffer get(short[] dst, int offset, int length);
public abstract ShortBuffer get(short[] dst, int offset, int length);
ShortBuffer get(short[] dst);
public abstract ShortBuffer get(short[] dst);
ShortBuffer put(ShortBuffer src);
public abstract ShortBuffer put(ShortBuffer src);
ShortBuffer put(short[] src, int offset, int length);
public abstract ShortBuffer put(short[] src, int offset, int length);
ShortBuffer put(short[] src);
public abstract ShortBuffer put(short[] src);
boolean isDirect();
public abstract boolean isDirect();
ShortBuffer mark();
public abstract ShortBuffer mark();
ShortBuffer reset();
public abstract ShortBuffer reset();
ShortBuffer clear();
public abstract ShortBuffer clear();
ShortBuffer flip();
public abstract ShortBuffer flip();
ShortBuffer rewind();
public abstract ShortBuffer rewind();
ShortBuffer limit(int newLimit);
public abstract ShortBuffer limit(int newLimit);
ShortBuffer position(int newPosition);
public abstract int limit();
short[] array();
public abstract ShortBuffer position(int newPosition);
public abstract int position();
public abstract int remaining();
public abstract boolean hasRemaining();
public abstract int capacity();
public abstract boolean hasArray();
public abstract short[] array();
}