Package cn.nukkit.resourcepacks
Interface ResourcePack
- All Known Implementing Classes:
AbstractResourcePack
,JarPluginResourcePack
,ZippedResourcePack
public interface ResourcePack
描述一个资源包的接口
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
byte[]
getPackChunk
(int off, int len) int
byte[]
-
Field Details
-
EMPTY_ARRAY
-
-
Method Details
-
getPackName
String getPackName()- Returns:
- 此资源包的名称
-
getPackId
UUID getPackId()- Returns:
- 此资源包的UUID
-
getPackVersion
String getPackVersion()- Returns:
- 此资源包的版本号
-
getPackSize
int getPackSize()- Returns:
- 此资源包的文件大小
-
getSha256
byte[] getSha256()- Returns:
- 资源包文件的SHA-256值
-
getPackChunk
byte[] getPackChunk(int off, int len) - Parameters:
off
- 偏移值len
- 长度- Returns:
- 资源包文件的指定分块
-
getEncryptionKey
- Returns:
- 资源包密钥(若加密)
-