public static interface ElementFace.Builder
ElementFace instances| Modifier and Type | Method and Description |
|---|---|
@NotNull ElementFace |
build()
Finishes building the
ElementFace
instance with the previously set values |
@NotNull ElementFace.Builder |
cullFace(@Nullable CubeFace cullFace)
Sets the element face cull face, it determines
whether a face does not need to be rendered
when there is a block touching it in the specified
position.
|
@NotNull ElementFace.Builder |
rotation(int rotation)
Sets the face rotation, it rotates the texture
by the specified number of degrees.
|
@NotNull ElementFace.Builder |
texture(@NotNull java.lang.String texture)
Sets the texture id to use, it must be
prepended with a "#".
|
@NotNull ElementFace.Builder |
tintIndex(int tintIndex)
Sets the face tint index, it determines whether to tint
the texture using a hardcoded tint index.
|
@NotNull ElementFace.Builder |
uv(@Nullable TextureUV uv)
Sets the texture area to use, will be automatically
generated by the client if not set.
|
default @NotNull ElementFace.Builder |
uv(@Nullable Vector4Float uv)
Deprecated.
Use
uv(TextureUV) instead |
@Contract(value="_ -> this") @NotNull @NotNull ElementFace.Builder uv(@Nullable @Nullable TextureUV uv)
uv - The texture area to use@Deprecated @ApiStatus.ScheduledForRemoval(inVersion="2.0.0") @Contract(value="_ -> this") @NotNull default @NotNull ElementFace.Builder uv(@Nullable @Nullable Vector4Float uv)
uv(TextureUV) insteaduv - The texture area to use@Contract(value="_ -> this") @NotNull @NotNull ElementFace.Builder texture(@NotNull @NotNull java.lang.String texture)
texture - The texture id@Contract(value="_ -> this") @NotNull @NotNull ElementFace.Builder cullFace(@Nullable @Nullable CubeFace cullFace)
cullFace - The element face cull face@Contract(value="_ -> this") @NotNull @NotNull ElementFace.Builder rotation(int rotation)
Rotation does not affect which part of the texture is used. Instead, it amounts to permutation of the selected texture vertexes (selected implicitly, or explicitly though uv)
rotation - The face rotation@Contract(value="_ -> this") @NotNull @NotNull ElementFace.Builder tintIndex(int tintIndex)
tintIndex - The face tint index@NotNull @NotNull ElementFace build()
ElementFace
instance with the previously set values