Class ComboProperty<S extends SettingsSource.SourceType>
java.lang.Object
com.soulfiremc.server.settings.property.ComboProperty<S>
- All Implemented Interfaces:
Property<S>
@TypeAdapters
@Immutable
public abstract non-sealed class ComboProperty<S extends SettingsSource.SourceType>
extends Object
implements Property<S>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncapitalizeEnum(T enumValue) protected voidcheck()abstract Stringabstract Stringbooleandisabled()abstract Stringkey()abstract List<ComboProperty.ComboOption> options()static <T extends Enum<T>>
ComboProperty.ComboOption[]optionsFromEnum(T[] values, Function<T, String> displayNameMapper, Function<T, @Nullable String> iconMapper) abstract StringuiName()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Property
namespace, sourceType, toProtoIdentifier
-
Constructor Details
-
ComboProperty
public ComboProperty()
-
-
Method Details
-
optionsFromEnum
-
capitalizeEnum
-
key
- Specified by:
keyin interfaceProperty<S extends SettingsSource.SourceType>
-
uiName
-
description
-
options
-
defaultValue
-
disabled
@Default public boolean disabled() -
check
@Check protected void check()
-