@ApiStatus.NonExtendable
public interface BuiltResourcePack
extends net.kyori.examination.Examinable
This class contains the data and SHA-1 hash of the resource-pack ZIP file.
| Modifier and Type | Method and Description |
|---|---|
default byte[] |
bytes()
Deprecated.
Use
data() instead |
@NotNull Writable |
data()
Returns the resource-pack zip archive
data.
|
@NotNull java.lang.String |
hash()
Returns the SHA-1 hash of the resource-pack.
|
static @NotNull BuiltResourcePack |
of(byte[] bytes,
@NotNull java.lang.String hash)
Deprecated.
Use
of(Writable, String) instead |
static @NotNull BuiltResourcePack |
of(@NotNull Writable data,
@NotNull java.lang.String hash)
Creates a new
BuiltResourcePack instance
from the given data and hash. |
@NotNull static @NotNull BuiltResourcePack of(@NotNull @NotNull Writable data, @NotNull @NotNull java.lang.String hash)
BuiltResourcePack instance
from the given data and hash.data - The resource-pack zip archive datahash - The SHA-1 hash of the resource-pack@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @NotNull static @NotNull BuiltResourcePack of(byte[] bytes, @NotNull @NotNull java.lang.String hash)
of(Writable, String) insteadBuiltResourcePack instance
from the given bytes and hash.bytes - The resource-pack zip archive byteshash - The SHA-1 hash of the resource-pack@NotNull @NotNull Writable data()
@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") default byte[] bytes()
data() instead@NotNull @NotNull java.lang.String hash()