@ApiStatus.NonExtendable public interface PalettedPermutationsAtlasSource extends AtlasSource
AtlasSource used to dynamically generate
new textures in memory based on a set of color palettes.| Modifier and Type | Method and Description |
|---|---|
@NotNull net.kyori.adventure.key.Key |
paletteKey()
Gets the key of a color palette key file.
|
@NotNull @Unmodifiable java.util.Map<java.lang.String,net.kyori.adventure.key.Key> |
permutations()
Gets the map of permutations from suffix to a key of a color palette file.
|
@NotNull @Unmodifiable java.util.List<net.kyori.adventure.key.Key> |
textures()
Gets the list of keys of the base textures.
|
directory, filter, palettedPermutations, single, single, unstitch, unstitch@NotNull @NotNull @Unmodifiable java.util.List<net.kyori.adventure.key.Key> textures()
@NotNull @NotNull net.kyori.adventure.key.Key paletteKey()
@NotNull @NotNull @Unmodifiable java.util.Map<java.lang.String,net.kyori.adventure.key.Key> permutations()
The suffix is prepended to the key of the output variant textures, with a _
character separating the suffix and the base texture name.
The number of pixels in each color palette must be the same as that of the paletteKey()
defined for this source. Pixels are compared by RGB value. The alpha channel is ignored for key
matching, but in the resulting texture the alpha channel is multiplied with the color palette's
alpha channel. Pixels that do not match the paletteKey() are copied over to the resulting
texture as-is.