Class SimpleMaterial

java.lang.Object
dev.engine_room.flywheel.lib.material.SimpleMaterial
All Implemented Interfaces:
Material

public class SimpleMaterial extends Object implements Material
  • Field Details

    • shaders

      protected final MaterialShaders shaders
    • fog

      protected final FogShader fog
    • cutout

      protected final CutoutShader cutout
    • light

      protected final LightShader light
    • texture

      protected final net.minecraft.resources.ResourceLocation texture
    • blur

      protected final boolean blur
    • mipmap

      protected final boolean mipmap
    • backfaceCulling

      protected final boolean backfaceCulling
    • polygonOffset

      protected final boolean polygonOffset
    • depthTest

      protected final DepthTest depthTest
    • transparency

      protected final Transparency transparency
    • writeMask

      protected final WriteMask writeMask
    • useOverlay

      protected final boolean useOverlay
    • useLight

      protected final boolean useLight
    • cardinalLightingMode

      protected final CardinalLightingMode cardinalLightingMode
    • ambientOcclusion

      protected final boolean ambientOcclusion
  • Constructor Details

  • Method Details

    • builder

      public static SimpleMaterial.Builder builder()
    • builderOf

      public static SimpleMaterial.Builder builderOf(Material material)
    • shaders

      public MaterialShaders shaders()
      Specified by:
      shaders in interface Material
    • fog

      public FogShader fog()
      Specified by:
      fog in interface Material
    • cutout

      public CutoutShader cutout()
      Specified by:
      cutout in interface Material
    • light

      public LightShader light()
      Specified by:
      light in interface Material
    • texture

      public net.minecraft.resources.ResourceLocation texture()
      Specified by:
      texture in interface Material
    • blur

      public boolean blur()
      Description copied from interface: Material
      Should this material have linear filtering applied to the diffuse sampler?
      Specified by:
      blur in interface Material
      Returns:
      true if this material should be rendered with blur.
    • mipmap

      public boolean mipmap()
      Specified by:
      mipmap in interface Material
    • backfaceCulling

      public boolean backfaceCulling()
      Description copied from interface: Material
      Should this material be rendered with backface culling?
      Specified by:
      backfaceCulling in interface Material
      Returns:
      true if this material should be rendered with backface culling.
    • polygonOffset

      public boolean polygonOffset()
      Specified by:
      polygonOffset in interface Material
    • depthTest

      public DepthTest depthTest()
      Specified by:
      depthTest in interface Material
    • transparency

      public Transparency transparency()
      Specified by:
      transparency in interface Material
    • writeMask

      public WriteMask writeMask()
      Specified by:
      writeMask in interface Material
    • useOverlay

      public boolean useOverlay()
      Specified by:
      useOverlay in interface Material
    • useLight

      public boolean useLight()
      Description copied from interface: Material
      Should this material be rendered with block/sky lighting?
      Specified by:
      useLight in interface Material
      Returns:
      true if this material should be rendered with block/sky lighting.
    • cardinalLightingMode

      public CardinalLightingMode cardinalLightingMode()
      Description copied from interface: Material
      How should this material receive cardinal lighting?
      Specified by:
      cardinalLightingMode in interface Material
      Returns:
      The cardinal lighting mode.
    • ambientOcclusion

      public boolean ambientOcclusion()
      Description copied from interface: Material
      Whether this material should receive ambient occlusion from nearby chunk geometry.
      Specified by:
      ambientOcclusion in interface Material
      Returns:
      true if this material should receive ambient occlusion.