Class ArchetypeParameter<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Field Detail

      • PARAMETER_TYPE

        @NotNull
        public static final @NotNull java.lang.String PARAMETER_TYPE
        The string representation of this parameter type.
    • Constructor Detail

      • ArchetypeParameter

        public ArchetypeParameter​(@NotNull
                                  @NotNull ArchetypeSet<G,​A,​R> archetypeSet)
        Creates a new instance.
        Parameters:
        archetypeSet - the archetype set for looking up archetypes
    • Method Detail

      • visit

        @NotNull
        public <T> T visit​(@NotNull
                           @NotNull PluginParameterVisitor<G,​A,​R,​T> visitor)
        Description copied from interface: PluginParameter
        Calls the visit() function for this parameter type.
        Type Parameters:
        T - the visitor-specific type of the return value
        Parameters:
        visitor - the visitor to call
        Returns:
        a visitor-specific return value
      • getValueOrNull

        @Nullable
        public @Nullable Archetype<G,​A,​R> getValueOrNull()
        Description copied from interface: PluginParameter
        Returns the current value of this parameter.
        Returns:
        the value or null if the the value is invalid
      • getParameterType

        @NotNull
        public @NotNull java.lang.String getParameterType()
        Description copied from interface: PluginParameter
        Returns the parameter type name.
        Returns:
        the parameter type name