public class ModelTextures
extends java.lang.Object
implements net.kyori.examination.Examinable
Model textures,
every texture is stored in form of a Key
(resource location)| Modifier and Type | Class and Description |
|---|---|
static class |
ModelTextures.Builder
Builder implementation for
ModelTextures
objects |
| Modifier and Type | Method and Description |
|---|---|
static ModelTextures.Builder |
builder()
Static factory method for instantiating our
builder implementation, which eases the construction
of new
ModelTextures instances |
boolean |
equals(java.lang.Object o) |
@NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> |
examinableProperties() |
int |
hashCode() |
@Unmodifiable java.util.List<ModelTexture> |
layers()
Returns the item texture layers.
|
static ModelTextures |
of(java.util.List<ModelTexture> layers,
@Nullable ModelTexture particle,
java.util.Map<java.lang.String,ModelTexture> variables)
Creates a new
ModelTextures from
the given values |
@Nullable ModelTexture |
particle()
Returns what texture to load particles from.
|
@NotNull ModelTextures.Builder |
toBuilder() |
java.lang.String |
toString() |
@Unmodifiable java.util.Map<java.lang.String,ModelTexture> |
variables()
Returns an unmodifiable map of the texture
variable definitions and assignations
|
public @Unmodifiable java.util.List<ModelTexture> layers()
There can be more than just one layer (e.g. for spawn eggs), but the amount of possible layers is hardcoded for each item.
Works only in combination with
Model.ITEM_GENERATED
@Nullable public @Nullable ModelTexture particle()
public @Unmodifiable java.util.Map<java.lang.String,ModelTexture> variables()
@NotNull public @NotNull ModelTextures.Builder toBuilder()
@NotNull public @NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
examinableProperties in interface net.kyori.examination.Examinablepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static ModelTextures of(java.util.List<ModelTexture> layers, @Nullable @Nullable ModelTexture particle, java.util.Map<java.lang.String,ModelTexture> variables)
ModelTextures from
the given valueslayers - The texture layersparticle - The particle texturevariables - The texture variablesModelTextures instancepublic static ModelTextures.Builder builder()
ModelTextures instancesModelTextures.Builder instance