Interface Material
- All Known Implementing Classes:
SimpleMaterial,SimpleMaterial.Builder
public interface Material
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanWhether this material should receive ambient occlusion from nearby chunk geometry.booleanShould this material be rendered with backface culling?booleanblur()Should this material have linear filtering applied to the diffuse sampler?How should this material receive cardinal lighting?cutout()default booleanCheck for field-wise equality between this Material and another.fog()light()booleanmipmap()booleanshaders()net.minecraft.resources.ResourceLocationtexture()booleanuseLight()Should this material be rendered with block/sky lighting?boolean
-
Method Details
-
shaders
MaterialShaders shaders() -
fog
FogShader fog() -
cutout
CutoutShader cutout() -
light
LightShader light() -
texture
net.minecraft.resources.ResourceLocation texture() -
blur
boolean blur()Should this material have linear filtering applied to the diffuse sampler?- Returns:
trueif this material should be rendered with blur.
-
mipmap
boolean mipmap() -
backfaceCulling
boolean backfaceCulling()Should this material be rendered with backface culling?- Returns:
trueif this material should be rendered with backface culling.
-
polygonOffset
boolean polygonOffset() -
depthTest
DepthTest depthTest() -
transparency
Transparency transparency() -
writeMask
WriteMask writeMask() -
useOverlay
boolean useOverlay() -
useLight
boolean useLight()Should this material be rendered with block/sky lighting?- Returns:
trueif this material should be rendered with block/sky lighting.
-
cardinalLightingMode
CardinalLightingMode cardinalLightingMode()How should this material receive cardinal lighting?- Returns:
- The cardinal lighting mode.
-
ambientOcclusion
default boolean ambientOcclusion()Whether this material should receive ambient occlusion from nearby chunk geometry.- Returns:
trueif this material should receive ambient occlusion.
-
equals
Check for field-wise equality between this Material and another.- Parameters:
other- The nullable material to check equality against.- Returns:
- True if the materials represent the same configuration.
-