Interface MaterialInstance
public interface MaterialInstance
This class is used to store data for a material instance.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for MaterialInstance -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets if the block's tint is masked by its texture's alpha.booleanDeprecated, for removal: This API element is subject to removal in a future version.floatGets the exponent applied to the ambient occlusion value after lighting.static MaterialInstance.Builderbuilder()Creates a builder for MaterialInstance.booleanGets if the block should be dimmed on certain faces.booleanGets if the block is isotropic, meaning the UVs of its faces are randomly rotated based on the block's position.@Nullable StringGets the render method of the block.@Nullable Stringtexture()Gets the texture of the block.booleanGets if the block's texture can use texture variations.@Nullable StringGets the tint method of the block.
-
Method Details
-
texture
@Nullable String texture()Gets the texture of the block.- Returns:
- the texture of the block
- Since:
- 2.2.0
-
renderMethod
@Nullable String renderMethod()Gets the render method of the block.- Returns:
- the render method of the block
- Since:
- 2.2.0
-
tintMethod
@Nullable String tintMethod()Gets the tint method of the block.- Returns:
- the tint method of the block
- Since:
- 2.9.1
-
faceDimming
boolean faceDimming()Gets if the block should be dimmed on certain faces.- Returns:
- if the block should be dimmed on certain faces
- Since:
- 2.2.0
-
ambientOcclusion
Deprecated, for removal: This API element is subject to removal in a future version.since 2.11.3: useambientOcclusionExponent()insteadGets if the block should have ambient occlusion.This method is deprecated for removal and will be removed in Geyser 2.13.0.
- Returns:
- if the block should have ambient occlusion
- Since:
- 2.2.0
-
ambientOcclusionExponent
float ambientOcclusionExponent()Gets the exponent applied to the ambient occlusion value after lighting. Bedrock accepts values between0.0and10.0, where0.0disables ambient occlusion and1.0is the default strength.- Returns:
- the ambient occlusion exponent
- Since:
- 2.11.3
-
isotropic
boolean isotropic()Gets if the block is isotropic, meaning the UVs of its faces are randomly rotated based on the block's position.- Returns:
- if the block is isotropic
- Since:
- 2.9.1
-
textureVariation
boolean textureVariation()Gets if the block's texture can use texture variations.- Returns:
- if the block's texture can use texture variations
- Since:
- 2.12.2
-
alphaMaskedTint
boolean alphaMaskedTint()Gets if the block's tint is masked by its texture's alpha.- Returns:
- if the block's tint is masked by its texture's alpha
- Since:
- 2.12.2
-
builder
Creates a builder for MaterialInstance.- Returns:
- a builder for MaterialInstance
-
ambientOcclusionExponent()instead