Interface Material

All Known Implementing Classes:
SimpleMaterial, SimpleMaterial.Builder

public interface Material
  • 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:
      true if this material should be rendered with blur.
    • mipmap

      boolean mipmap()
    • backfaceCulling

      boolean backfaceCulling()
      Should this material be rendered with backface culling?
      Returns:
      true if 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:
      true if 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:
      true if this material should receive ambient occlusion.
    • equals

      default boolean equals(@Nullable @Nullable Material other)
      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.