Class VariablesManager

java.lang.Object
rocks.gravili.notquests.paper.managers.registering.VariablesManager

public class VariablesManager extends Object
  • Constructor Details

    • VariablesManager

      public VariablesManager(NotQuests main)
  • Method Details

    • registerDefaultVariables

      public void registerDefaultVariables()
    • registerVariableCommands

      public cloud.commandframework.Command.Builder<org.bukkit.command.CommandSender> registerVariableCommands(String variableString, cloud.commandframework.Command.Builder<org.bukkit.command.CommandSender> builder)
    • registerVariable

      public void registerVariable(String identifier, Class<? extends Variable<?>> Variable)
    • getVariableClass

      public final Class<? extends Variable<?>> getVariableClass(String type)
    • getVariableType

      public final String getVariableType(Class<? extends Variable> variable)
    • getVariablesAndIdentifiers

      public final HashMap<String,Class<? extends Variable<?>>> getVariablesAndIdentifiers()
    • getVariables

      public final Collection<Class<? extends Variable<?>>> getVariables()
    • getVariableIdentifiers

      public final Collection<String> getVariableIdentifiers()
    • addVariable

      public void addVariable(Variable<?> Variable, cloud.commandframework.context.CommandContext<org.bukkit.command.CommandSender> context)
    • getVariableFromString

      public final Variable<?> getVariableFromString(String variableString)
    • evaluateExpression

      public double evaluateExpression(String expression, org.bukkit.entity.Player player, Object... objects)