Class ScenarioSetting.Builder
java.lang.Object
dev.itsharshxd.zentrix.api.scenario.ScenarioSetting.Builder
- Enclosing class:
ScenarioSetting
Fluent builder for
ScenarioSetting.-
Method Summary
Modifier and TypeMethodDescription@NotNull ScenarioSetting.BuilderThe accepted values of anScenarioSettingType.ENUMsetting.@NotNull ScenarioSettingbuild()@NotNull ScenarioSetting.Builderdescription(@NotNull String... lines) The description lines shown in the management GUI.@NotNull ScenarioSetting.BuilderdisplayName(@Nullable String displayName) The label shown in the management GUI.@NotNull ScenarioSetting.Builderrange(double minimum, double maximum) Bounds for a numeric setting.@NotNull ScenarioSetting.Builderschema(@Nullable ScenarioEntrySchema entrySchema) The shape of one entry, required by aScenarioSettingType.STRUCTURED_LIST.
-
Method Details
-
range
Bounds for a numeric setting. Ignored by every other type. -
allowed
The accepted values of anScenarioSettingType.ENUMsetting. -
displayName
@NotNull public @NotNull ScenarioSetting.Builder displayName(@Nullable @Nullable String displayName) The label shown in the management GUI. -
description
The description lines shown in the management GUI. -
schema
@NotNull public @NotNull ScenarioSetting.Builder schema(@Nullable @Nullable ScenarioEntrySchema entrySchema) The shape of one entry, required by aScenarioSettingType.STRUCTURED_LIST. -
build
-