Interface AllowedServerFunction.Builder

Enclosing interface:
AllowedServerFunction

public static interface AllowedServerFunction.Builder
Builder for a server function filter.
Since:
5.2.251104
  • Method Details

    • pluginName

      @Contract("_ -> this") @NotNull @NotNull AllowedServerFunction.Builder pluginName(@Nullable @Nullable String pluginName)
      Configures the plugin to allow functions from, null for no restriction.
      Parameters:
      pluginName - The plugin name, or null.
      Returns:
      This builder instance.
      Since:
      5.2.251104
      See Also:
    • serverName

      @Contract("_ -> this") @NotNull @NotNull AllowedServerFunction.Builder serverName(@Nullable @Nullable String serverName)
      Configures the server to allow functions from, null for no restriction.
      Parameters:
      serverName - The server name, or null.
      Returns:
      This builder instance.
      Since:
      5.2.251104
      See Also:
    • functionName

      @Contract("_ -> this") @NotNull @NotNull AllowedServerFunction.Builder functionName(@Nullable @Nullable String functionName)
      Configures the name of a function to allow, null for no restriction.
      Parameters:
      functionName - The function name, or null.
      Returns:
      This builder instance.
      Since:
      5.2.251104
    • create

      @NotNull @NotNull AllowedServerFunction create()
      Creates a new instance.
      Returns:
      The new instance.
      Since:
      5.2.251104