Class RConUtils

java.lang.Object
net.minecraft.src.RConUtils

public class RConUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static char[]
    Translation array of decimal to hex digits
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getByteAsHexString(byte par0)
    Returns a String representation of the byte in hexadecimal format
    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
    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
    static String
    getBytesAsString(byte[] par0ArrayOfByte, int par1, int par2)
    Read a null-terminated string from the given byte array
    static int
    getRemainingBytesAsLEInt(byte[] par0ArrayOfByte, int par1)
    Read 4 bytes from the

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • hexDigits

      public static char[] hexDigits
      Translation array of decimal to hex digits
  • Constructor Details

    • RConUtils

      public RConUtils()
  • Method Details

    • getBytesAsString

      public static String getBytesAsString(byte[] par0ArrayOfByte, int par1, int par2)
      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

      public static String getByteAsHexString(byte par0)
      Returns a String representation of the byte in hexadecimal format