Interface MaterialInstance
public interface MaterialInstance
This class is used to store data for a material instance.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@org.checkerframework.checker.nullness.qual.Nullable booleanGets if the block should have ambient occlusionstatic MaterialInstance.Builderbuilder()Creates a builder for MaterialInstance.@org.checkerframework.checker.nullness.qual.Nullable booleanGets if the block should be dimmed on certain faces@Nullable StringGets the render method of the block@NonNull Stringtexture()Gets the texture of the block
-
Method Details
-
texture
@NonNull String texture()Gets the texture of the block- Returns:
- The texture of the block.
-
renderMethod
@Nullable String renderMethod()Gets the render method of the block- Returns:
- The render method of the block.
-
faceDimming
@org.checkerframework.checker.nullness.qual.Nullable boolean faceDimming()Gets if the block should be dimmed on certain faces- Returns:
- If the block should be dimmed on certain faces.
-
ambientOcclusion
@org.checkerframework.checker.nullness.qual.Nullable boolean ambientOcclusion()Gets if the block should have ambient occlusion- Returns:
- If the block should have ambient occlusion.
-
builder
Creates a builder for MaterialInstance.- Returns:
- a builder for MaterialInstance
-