Package net.kyori.option
Interface OptionState.Builder
- Enclosing interface:
- OptionState
@NonExtendable
public static interface OptionState.Builder
A builder for option states.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull OptionStatebuild()Create a completed option state.<V> @NotNull OptionState.BuilderSet the value for a specific option.@NotNull OptionState.Buildervalues(@NotNull OptionState existing) Apply all values from the existing option state.
-
Method Details
-
value
@NotNull <V> @NotNull OptionState.Builder value(@NotNull @NotNull Option<V> option, @NotNull V value) Set the value for a specific option.- Type Parameters:
V- the value type- Parameters:
option- the option to set the value forvalue- the value- Returns:
- this builder
- Since:
- 1.0.0
-
values
Apply all values from the existing option state.- Parameters:
existing- the existing state- Returns:
- this builder
- Since:
- 1.0.0
-
build
Create a completed option state.- Returns:
- the built state
- Since:
- 1.0.0
-