Package net.minecraft.src
Class RConUtils
java.lang.Object
net.minecraft.src.RConUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic char[]Translation array of decimal to hex digits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetByteAsHexString(byte par0) Returns a String representation of the byte in hexadecimal formatstatic intgetBytesAsBEint(byte[] par0ArrayOfByte, int par1, int par2) Read 4 bytes from the given array in big-endian format and return them as an intstatic intgetBytesAsLEInt(byte[] par0ArrayOfByte, int par1, int par2) Read 4 bytes from the given array in little-endian format and return them as an intstatic StringgetBytesAsString(byte[] par0ArrayOfByte, int par1, int par2) Read a null-terminated string from the given byte arraystatic intgetRemainingBytesAsLEInt(byte[] par0ArrayOfByte, int par1) Read 4 bytes from the
-
Field Details
-
hexDigits
public static char[] hexDigitsTranslation array of decimal to hex digits
-
-
Constructor Details
-
RConUtils
public RConUtils()
-
-
Method Details
-
getBytesAsString
Read a null-terminated string from the given byte array -
getRemainingBytesAsLEInt
public static int getRemainingBytesAsLEInt(byte[] par0ArrayOfByte, int par1) Read 4 bytes from the -
getBytesAsLEInt
public static int getBytesAsLEInt(byte[] par0ArrayOfByte, int par1, int par2) Read 4 bytes from the given array in little-endian format and return them as an int -
getBytesAsBEint
public static int getBytesAsBEint(byte[] par0ArrayOfByte, int par1, int par2) Read 4 bytes from the given array in big-endian format and return them as an int -
getByteAsHexString
Returns a String representation of the byte in hexadecimal format
-