out.writeUTF( ((Texture)texture.get(i)).getImageLocation() ); out.writeInt( ((Texture)texture.get(i)).getMipmapState() ); out.writeInt( ((Texture)texture.get(i)).getFilter() );
out.writeUTF( texture.get(i).getImageLocation() ); out.writeInt( texture.get(i).getMipmapState() ); out.writeInt( texture.get(i).getFilter() );
    private void writeObject(java.io.ObjectOutputStream out) throws IOException{        out.defaultWriteObject();        out.writeShort(texture.size());        for (int i=0;i<texture.size();i++){            if ( texture.get(i) == null ) {                out.writeBoolean( false );            }            else {                out.writeBoolean( true );                out.writeUTF( ((Texture)texture.get(i)).getImageLocation() );                out.writeInt( ((Texture)texture.get(i)).getMipmapState() );                out.writeInt( ((Texture)texture.get(i)).getFilter() );            }        }    }