public static interface Texture.Builder
Key and data are required, all other options are optional.
| Modifier and Type | Method and Description |
|---|---|
default @NotNull Texture.Builder |
animationMeta(@NotNull AnimationMeta animationMeta)
Adds a animation metadata part to the texture metadata.
|
@NotNull Texture |
build()
Builds the texture instance.
|
@Nullable Writable |
data()
Gets the texture data.
|
@NotNull Texture.Builder |
data(@NotNull Writable data)
Sets the texture data.
|
@Nullable net.kyori.adventure.key.Key |
key()
Gets the texture key.
|
@NotNull Texture.Builder |
key(@NotNull net.kyori.adventure.key.Key key)
Sets the texture key.
|
@NotNull Metadata |
meta()
Gets the texture metadata.
|
@NotNull Texture.Builder |
meta(@NotNull Metadata meta)
Sets the texture metadata.
|
default @NotNull Texture.Builder |
textureMeta(@NotNull TextureMeta textureMeta)
Adds a texture metadata part to the texture metadata.
|
default @NotNull Texture.Builder |
villagerMeta(@NotNull VillagerMeta villagerMeta)
Adds a villager metadata part to the texture metadata.
|
@Contract(value="_ -> this") @NotNull @NotNull Texture.Builder key(@NotNull @NotNull net.kyori.adventure.key.Key key)
key - The texture key@Nullable @Nullable net.kyori.adventure.key.Key key()
@Contract(value="_ -> this") @NotNull @NotNull Texture.Builder data(@NotNull @NotNull Writable data)
data - The texture data@Nullable @Nullable Writable data()
@Contract(value="_ -> this") @NotNull @NotNull Texture.Builder meta(@NotNull @NotNull Metadata meta)
meta - The texture metadata@NotNull @NotNull Metadata meta()
@Contract(value="_ -> this") @NotNull default @NotNull Texture.Builder animationMeta(@NotNull @NotNull AnimationMeta animationMeta)
animationMeta - The animation metadata@Contract(value="_ -> this") @NotNull default @NotNull Texture.Builder villagerMeta(@NotNull @NotNull VillagerMeta villagerMeta)
villagerMeta - The villager metadata@NotNull default @NotNull Texture.Builder textureMeta(@NotNull @NotNull TextureMeta textureMeta)
textureMeta - The texture metadata@NotNull @NotNull Texture build()