Interface GrayBlend

All Superinterfaces:
Wrapper

@NullMarked @AsOf("3.2.0") public interface GrayBlend extends Wrapper
The argument of AttributeOperation.BLEND_TO_GRAY on a color attribute.
Since:
3.2.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Builder for GrayBlend.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    The brightness of the gray color.
    float
    The factor of the gray color.
    static GrayBlend
    of(float brightness, float factor)
    Creates a new gray blend.
    Creates a new builder with the same values as this gray blend.

    Methods inherited from interface Wrapper

    asHandle, toMinecraft, unwrap
  • Method Details

    • brightness

      @AsOf("3.2.0") float brightness()
      The brightness of the gray color.
      Returns:
      the brightness of the gray color
      Since:
      3.2.0
    • factor

      @AsOf("3.2.0") float factor()
      The factor of the gray color.
      Returns:
      the factor of the gray color
      Since:
      3.2.0
    • toBuilder

      @AsOf("3.3.0") default GrayBlend.Builder toBuilder()
      Creates a new builder with the same values as this gray blend.
      Returns:
      a new builder with the same values
      Since:
      3.3.0
    • of

      @AsOf("3.2.0") static GrayBlend of(float brightness, float factor)
      Creates a new gray blend.
      Parameters:
      brightness - the brightness of the gray color
      factor - the factor of the gray color
      Returns:
      a new gray blend
      Since:
      3.2.0