Class AdventureProperties
- java.lang.Object
- 
- net.kyori.adventure.internal.properties.AdventureProperties
 
- 
 @Internal public final class AdventureProperties extends java.lang.ObjectAdventure properties.- Since:
- 4.10.0
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceAdventureProperties.Property<T>A property.
 - 
Field SummaryFields Modifier and Type Field Description static AdventureProperties.Property<java.lang.Boolean>DEBUGProperty for specifying whether debug mode is enabled.static AdventureProperties.Property<java.lang.String>DEFAULT_TRANSLATION_LOCALEProperty for specifying the default translation locale.static AdventureProperties.Property<java.lang.Boolean>SERVICE_LOAD_FAILURES_ARE_FATALProperty for specifying whether service load failures are fatal.static AdventureProperties.Property<java.lang.Boolean>TEXT_WARN_WHEN_LEGACY_FORMATTING_DETECTEDProperty for specifying whether to warn when legacy formatting is detected.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> @NotNull AdventureProperties.Property<T>property(@NotNull java.lang.String name, @NotNull java.util.function.Function<java.lang.String,T> parser, T defaultValue)Creates a new property.
 
- 
- 
- 
Field Detail- 
DEBUGpublic static final AdventureProperties.Property<java.lang.Boolean> DEBUG Property for specifying whether debug mode is enabled.- Since:
- 4.10.0
 
 - 
DEFAULT_TRANSLATION_LOCALEpublic static final AdventureProperties.Property<java.lang.String> DEFAULT_TRANSLATION_LOCALE Property for specifying the default translation locale.- Since:
- 4.10.0
 
 - 
SERVICE_LOAD_FAILURES_ARE_FATALpublic static final AdventureProperties.Property<java.lang.Boolean> SERVICE_LOAD_FAILURES_ARE_FATAL Property for specifying whether service load failures are fatal.- Since:
- 4.10.0
 
 - 
TEXT_WARN_WHEN_LEGACY_FORMATTING_DETECTEDpublic static final AdventureProperties.Property<java.lang.Boolean> TEXT_WARN_WHEN_LEGACY_FORMATTING_DETECTED Property for specifying whether to warn when legacy formatting is detected.- Since:
- 4.10.0
 
 
- 
 - 
Method Detail- 
property@NotNull public static <T> @NotNull AdventureProperties.Property<T> property(@NotNull @NotNull java.lang.String name, @NotNull @NotNull java.util.function.Function<java.lang.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
 
 
- 
 
-