Interface FacetComponentFlattener.Translator<V>

  • Type Parameters:
    V - the game
    All Superinterfaces:
    Facet<V>
    Enclosing class:
    FacetComponentFlattener

    public static interface FacetComponentFlattener.Translator<V>
    extends Facet<V>
    An interface to the game's own translation system.
    Since:
    4.0.0
    • Method Detail

      • valueOrDefault

        @NotNull
        @NotNull java.lang.String valueOrDefault​(@NotNull
                                                 V game,
                                                 @NotNull
                                                 @NotNull java.lang.String key)
        Get the translation for key or return key.
        Parameters:
        game - the game instance
        key - the key
        Returns:
        a translation or the key
        Since:
        4.0.0