Class AdventureProperties
java.lang.Object
net.kyori.adventure.internal.properties.AdventureProperties
Adventure properties.
- Since:
- 4.10.0
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceA service provider that allows default property values to be overridden.static interfaceA property.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final AdventureProperties.Property<Boolean>Property for specifying whether debug mode is enabled.static final AdventureProperties.Property<Integer>Property for setting a global default for flattener nesting.static final AdventureProperties.Property<String>Property for specifying the default translation locale.static final AdventureProperties.Property<Boolean>Property for specifying whether service load failures are fatal.static final AdventureProperties.Property<Boolean>Property for specifying whether to warn when legacy formatting is detected.
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> @NotNull AdventureProperties.Property<T>Creates a new property.static <T> @NotNull AdventureProperties.Property<T>property(@NotNull String name, @NotNull Function<String, T> parser, T defaultValue, boolean allowProviderDefaultOverride) Creates a new property.
- 
Field Details- 
DEBUGProperty for specifying whether debug mode is enabled.- Since:
- 4.10.0
 
- 
DEFAULT_TRANSLATION_LOCALEProperty for specifying the default translation locale.- Since:
- 4.10.0
 
- 
SERVICE_LOAD_FAILURES_ARE_FATALProperty for specifying whether service load failures are fatal.- Since:
- 4.10.0
 
- 
TEXT_WARN_WHEN_LEGACY_FORMATTING_DETECTEDProperty for specifying whether to warn when legacy formatting is detected.- Since:
- 4.10.0
 
- 
DEFAULT_FLATTENER_NESTING_LIMITProperty for setting a global default for flattener nesting.- Since:
- 4.24.0
 
 
- 
- 
Method Details- 
property@NotNull public static <T> @NotNull AdventureProperties.Property<T> property(@NotNull @NotNull String name, @NotNull @NotNull Function<String, T> parser, @Nullable T defaultValue) Creates a new property.- Type Parameters:
- T- the value type
- Parameters:
- name- the property name
- parser- the value parser
- defaultValue- the default value
- Returns:
- a property
- Since:
- 4.10.0
 
- 
property@NotNull public static <T> @NotNull AdventureProperties.Property<T> property(@NotNull @NotNull String name, @NotNull @NotNull Function<String, T> parser, @Nullable T defaultValue, boolean allowProviderDefaultOverride) Creates a new property.- Type Parameters:
- T- the value type
- Parameters:
- name- the property name
- parser- the value parser
- defaultValue- the default value
- allowProviderDefaultOverride- if the- AdventureProperties.DefaultOverrideProvideris used to override the default value provided
- Returns:
- a property
- Since:
- 4.24.0
 
 
-