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.