Method | Description | |
---|---|---|
Extract ( |
Extracts the raw data for a resource.
|
|
LoadCache ( ResourceLocation location, string path ) : void |
Loads a resource cache from a file.
|
|
LoadCachesFromDirectory ( string directory ) : void |
Loads resource caches from a directory using their default filenames.
|
|
Replace ( |
Replaces the raw data for a resource.
|
Method | Description | |
---|---|---|
GetCache ( |
public Extract ( |
||
resource | The resource. | |
outStream | Stream | The stream to write the extracted data to. |
return | void |
public LoadCache ( ResourceLocation location, string path ) : void | ||
location | ResourceLocation | The resource cache type. |
path | string | The path to the .dat file to read. |
return | void |
public LoadCachesFromDirectory ( string directory ) : void | ||
directory | string | The directory to find files in. |
return | void |
public Replace ( |
||
resource | The resource whose data should be replaced. On success, the reference will be adjusted to account for the new data. | |
dataStream | Stream | The stream to read the new data from. |
return | void |