Class ResourcePackProvider
Inheritance
System.Object
ResourcePackProvider
Assembly: OpenAPI.dll
Syntax
public class ResourcePackProvider : object
Constructors
|
Improve this Doc
View Source
ResourcePackProvider(OpenApi)
Declaration
public ResourcePackProvider(OpenApi api)
Parameters
Properties
|
Improve this Doc
View Source
HasData
Declaration
public bool HasData { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
MustAccept
Declaration
public bool MustAccept { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
GetChunkCount(String, UInt32, out ResourcePackManifest, out UInt64, out Byte[])
Declaration
public uint GetChunkCount(string packageId, uint maxChunKSize, out ResourcePackManifest manifest, out ulong size, out byte[] hash)
Parameters
Type |
Name |
Description |
System.String |
packageId |
|
System.UInt32 |
maxChunKSize |
|
ResourcePackManifest |
manifest |
|
System.UInt64 |
size |
|
System.Byte[] |
hash |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetResourcePackChunk(String, UInt32, UInt32)
Declaration
public byte[] GetResourcePackChunk(string packageId, uint chunkIndex, uint maxChunkSize)
Parameters
Type |
Name |
Description |
System.String |
packageId |
|
System.UInt32 |
chunkIndex |
|
System.UInt32 |
maxChunkSize |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
GetResourcePackInfos()
Declaration
public IEnumerable<ResourcePackInfo> GetResourcePackInfos()
Returns
Type |
Description |
IEnumerable<ResourcePackInfo> |
|
|
Improve this Doc
View Source
UseResourcePack(String, Boolean)
Declaration
public void UseResourcePack(string file, bool required)
Parameters
Type |
Name |
Description |
System.String |
file |
|
System.Boolean |
required |
|