Class ScenarioProfile.Builder
java.lang.Object
dev.itsharshxd.zentrix.api.scenario.ScenarioProfile.Builder
- Enclosing class:
ScenarioProfile
Fluent builder for
ScenarioProfile.-
Method Summary
Modifier and TypeMethodDescription@NotNull ScenarioProfile.BuilderadminSet(@Nullable Collection<String> scenarioIds) The scenarios an administrator chose, used by the administrator-set mode.@NotNull ScenarioProfile.BuilderallowVoteChanges(boolean allowed) @NotNull ScenarioProfile.BuilderannounceVoteResults(boolean announce) @NotNull ScenarioProfile.BuilderautomaticCount(int count) How many scenarios an automatic match draws.@NotNull ScenarioProfile.BuilderautomaticPool(@Nullable Collection<String> scenarioIds) What an automatic match draws from; an empty list means every selectable scenario.@NotNull ScenarioProfile.BuilderblockedGameTypes(@NotNull String scenarioId, @Nullable Collection<String> gameTypes) Thegame-types.ymlnames one scenario is kept out of.@NotNull ScenarioProfilebuild()@NotNull ScenarioProfile.BuildercloseVoteWhenEveryoneVoted(boolean close) @NotNull ScenarioProfile.BuildernoVoteRule(@Nullable ScenarioNoVoteRule rule) @NotNull ScenarioProfile.BuilderOne override at an explicit configuration path.@NotNull ScenarioProfile.BuilderscenarioEnabled(@NotNull String scenarioId, boolean enabled) Switches one scenario on or off for matches on this arena.@NotNull ScenarioProfile.BuilderselectionMode(@Nullable ScenarioSelectionMode mode) How matches on this arena pick their scenarios.@NotNull ScenarioProfile.BuilderOne scenario setting's value, in the shape the setting declares.@NotNull ScenarioProfile.BuildertieRule(@Nullable ScenarioTieRule rule) @NotNull ScenarioProfile.BuildervotesPerPlayer(int votes) @NotNull ScenarioProfile.BuildervoteVisibility(@Nullable ScenarioVoteVisibility visibility) @NotNull ScenarioProfile.BuildervoteWinnerCount(int winners) @NotNull ScenarioProfile.BuildervotingDuration(int seconds) How long a lobby votes, in seconds.@NotNull ScenarioProfile.BuildervotingEligible(@Nullable Collection<String> scenarioIds) Which scenarios may be voted for; an empty list means every eligible scenario.
-
Method Details
-
selectionMode
@NotNull public @NotNull ScenarioProfile.Builder selectionMode(@Nullable @Nullable ScenarioSelectionMode mode) How matches on this arena pick their scenarios. -
adminSet
@NotNull public @NotNull ScenarioProfile.Builder adminSet(@Nullable @Nullable Collection<String> scenarioIds) The scenarios an administrator chose, used by the administrator-set mode. -
automaticCount
How many scenarios an automatic match draws. -
automaticPool
@NotNull public @NotNull ScenarioProfile.Builder automaticPool(@Nullable @Nullable Collection<String> scenarioIds) What an automatic match draws from; an empty list means every selectable scenario. -
votingDuration
How long a lobby votes, in seconds. -
votesPerPlayer
-
voteWinnerCount
-
allowVoteChanges
-
voteVisibility
@NotNull public @NotNull ScenarioProfile.Builder voteVisibility(@Nullable @Nullable ScenarioVoteVisibility visibility) -
tieRule
-
noVoteRule
@NotNull public @NotNull ScenarioProfile.Builder noVoteRule(@Nullable @Nullable ScenarioNoVoteRule rule) -
votingEligible
@NotNull public @NotNull ScenarioProfile.Builder votingEligible(@Nullable @Nullable Collection<String> scenarioIds) Which scenarios may be voted for; an empty list means every eligible scenario. -
closeVoteWhenEveryoneVoted
-
announceVoteResults
-
scenarioEnabled
@NotNull public @NotNull ScenarioProfile.Builder scenarioEnabled(@NotNull @NotNull String scenarioId, boolean enabled) Switches one scenario on or off for matches on this arena. -
blockedGameTypes
@NotNull public @NotNull ScenarioProfile.Builder blockedGameTypes(@NotNull @NotNull String scenarioId, @Nullable @Nullable Collection<String> gameTypes) Thegame-types.ymlnames one scenario is kept out of. -
setting
@NotNull public @NotNull ScenarioProfile.Builder setting(@NotNull @NotNull String scenarioId, @NotNull @NotNull String key, @Nullable @Nullable Object value) One scenario setting's value, in the shape the setting declares. -
raw
@NotNull public @NotNull ScenarioProfile.Builder raw(@NotNull @NotNull String path, @Nullable @Nullable Object value) One override at an explicit configuration path.The escape hatch for anything the typed methods do not cover, and the natural way to copy a profile out of an addon's own YAML file. A null value removes the override.
-
build
-