Code example for DataInputStream

Methods: readBytereadIntreadShortreadUTF

    public void readData(DataInputStream data) throws IOException { 
        x = data.readInt(); 
        y = data.readInt(); 
        z = data.readInt(); 
        orientation = data.readByte(); 
        state = data.readShort(); 
        owner = data.readUTF(); 
        customName = data.readUTF(); 
    public void execute(INetworkManager manager, Player player) { 
        RSMod.proxy.handleTileEntityPacket(x, y, z, ForgeDirection.getOrientation(orientation), state, owner, customName); 
Connect your IDE to all the code out there  Get Codota for Java