public final @NotNull TextDecorationAndState withState(final @NotNull TriState state) {
    return new TextDecorationAndStateImpl(this, State.byTriState(state));
  }
An alias for {@link #as(State)}.

@param state the state
@return a {@link TextDecorationAndState}
@since 4.10.0
api/src/main/java/net/kyori/adventure/text/format/TextDecoration.java