Class ScenarioEntryField.Builder
java.lang.Object
dev.itsharshxd.zentrix.api.scenario.ScenarioEntryField.Builder
- Enclosing class:
ScenarioEntryField
Fluent builder for
ScenarioEntryField. Fields are required unless made optional.-
Method Summary
Modifier and TypeMethodDescription@NotNull ScenarioEntryField.BuilderThe accepted values of aScenarioFieldType.ENUMfield.@NotNull ScenarioEntryFieldbuild()@NotNull ScenarioEntryField.Builderdescription(@NotNull String... lines) The description lines shown in the management GUI.@NotNull ScenarioEntryField.BuilderdisplayName(@Nullable String displayName) The label shown in the management GUI.@NotNull ScenarioEntryField.BuilderMakes the field optional, falling back todefaultValuewhen nothing is stored.@NotNull ScenarioEntryField.Builderrange(double minimum, double maximum) Bounds for a numeric field.
-
Method Details
-
optional
Makes the field optional, falling back todefaultValuewhen nothing is stored. -
range
Bounds for a numeric field. Ignored by every other type. -
allowed
The accepted values of aScenarioFieldType.ENUMfield. -
displayName
@NotNull public @NotNull ScenarioEntryField.Builder displayName(@Nullable @Nullable String displayName) The label shown in the management GUI. -
description
The description lines shown in the management GUI. -
build
-