Interface MaterialInstance


public interface MaterialInstance
This class is used to store data for a material instance.
  • Method Details

    • texture

      @Nullable 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.
    • tintMethod

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

      boolean faceDimming()
      Gets if the block should be dimmed on certain faces
      Returns:
      If the block should be dimmed on certain faces.
    • ambientOcclusion

      @Deprecated(since="2.11.3") boolean ambientOcclusion()
      Deprecated.
      Gets if the block should have ambient occlusion
      Returns:
      If the block should have ambient occlusion.
    • ambientOcclusionExponent

      float ambientOcclusionExponent()
      Gets the exponent applied to the ambient occlusion value after lighting. Bedrock accepts values between 0.0 and 10.0, where 0.0 disables ambient occlusion and 1.0 is the default strength.
      Returns:
      the ambient occlusion exponent
      Since:
      2.11.3
    • isotropic

      boolean isotropic()
      Gets if the block is isotropic
      Returns:
      If the block is isotropic.
    • builder

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