Interface MutableStyleSetter<T extends MutableStyleSetter<?>>

    • Method Detail

      • decorations

        @Contract("_ -> this")
        @NotNull
        default T decorations​(@NotNull
                              @NotNull java.util.Map<TextDecoration,​TextDecoration.State> decorations)
        Sets decorations using the specified decorations map.

        If a given decoration does not have a value explicitly set, the value of that particular decoration is not changed.

        Specified by:
        decorations in interface StyleSetter<T extends MutableStyleSetter<?>>
        Parameters:
        decorations - a map containing text decorations and their respective state.
        Returns:
        a mutable object (T)
        Since:
        4.10.0
      • decorations

        @Contract("_, _ -> this")
        @NotNull
        default T decorations​(@NotNull
                              @NotNull java.util.Set<TextDecoration> decorations,
                              boolean flag)
        Sets the state of a set of decorations to flag.
        Specified by:
        decorations in interface StyleSetter<T extends MutableStyleSetter<?>>
        Parameters:
        decorations - the decorations
        flag - true if this mutable object should have the decorations, false if this mutable object should not have the decorations
        Returns:
        a mutable object (T)
        Since:
        4.10.0