Class FacetComponentFlattener
- java.lang.Object
-
- net.kyori.adventure.platform.facet.FacetComponentFlattener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFacetComponentFlattener.Translator<V>An interface to the game's own translation system.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V> net.kyori.adventure.text.flattener.ComponentFlattenerget(V instance, Collection<? extends FacetComponentFlattener.Translator<V>> candidates)Create a new flattener, picking an applicable translator.
-
-
-
Method Detail
-
get
public static <V> net.kyori.adventure.text.flattener.ComponentFlattener get(V instance, Collection<? extends FacetComponentFlattener.Translator<V>> candidates)Create a new flattener, picking an applicable translator.If no translators are available, keys will be passed through untransformed.
- Type Parameters:
V- instance type- Parameters:
instance- the game/server instancecandidates- potential facets- Returns:
- a new flattener
- Since:
- 4.0.0
-
-