Class FacetComponentFlattener
java.lang.Object
net.kyori.adventure.platform.facet.FacetComponentFlattener
A provider for component flatteners that uses the
Facet system to access implementation details.- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn interface to the game's own translation system. -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> ComponentFlattenerget(V instance, Collection<? extends FacetComponentFlattener.Translator<V>> candidates) Create a new flattener, picking an applicable translator.
-
Method Details
-
get
public static <V> 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
-