Interface MaterialInstance


public interface MaterialInstance
This class is used to store data for a material instance.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @org.checkerframework.checker.nullness.qual.Nullable boolean
    Gets if the block should have ambient occlusion
    Creates a builder for MaterialInstance.
    @org.checkerframework.checker.nullness.qual.Nullable boolean
    Gets if the block should be dimmed on certain faces
    @Nullable String
    Gets the render method of the block
    @NonNull String
    Gets the texture of the block
  • Method Details

    • texture

      @NonNull String texture()
      Gets the texture of the block
      Returns:
      The texture of the block.
    • renderMethod

      @Nullable String renderMethod()
      Gets the render method of the block
      Returns:
      The render method of the block.
    • faceDimming

      @org.checkerframework.checker.nullness.qual.Nullable boolean faceDimming()
      Gets if the block should be dimmed on certain faces
      Returns:
      If the block should be dimmed on certain faces.
    • ambientOcclusion

      @org.checkerframework.checker.nullness.qual.Nullable boolean ambientOcclusion()
      Gets if the block should have ambient occlusion
      Returns:
      If the block should have ambient occlusion.
    • builder

      static MaterialInstance.Builder builder()
      Creates a builder for MaterialInstance.
      Returns:
      a builder for MaterialInstance