Class WikiCommandStrategyLoader

java.lang.Object
com.pixelmonmod.pixelmon.api.command.WikiCommandStrategyLoader

public class WikiCommandStrategyLoader extends Object
  • Constructor Details

    • WikiCommandStrategyLoader

      public WikiCommandStrategyLoader()
  • Method Details

    • executeStrategy

      public static void executeStrategy(net.minecraft.commands.CommandSourceStack sender, Pokemon pokemon, String[] specs, String strategyId)
      Execute strategy for provided strategyId, or default strategy, on a source for a pokemon
      Parameters:
      sender - who should receive the strategy output
      pokemon - which the strategy should be applied upon
      specs - of the pokemon
    • getStrategy

      public static Optional<WikiCommandStrategy> getStrategy(String strategyId)
      Find the strategy matching the provided argument
      Parameters:
      strategyId - of the strategy
      Returns:
      the strategy if found, otherwise Optional.Empty
    • registerStrategy

      public static void registerStrategy(WikiCommandStrategy strategy)
      Register a Custom Wiki Strategy
      Parameters:
      strategy - to register
    • unregisterStrategy

      public static void unregisterStrategy(WikiCommandStrategy strategy)
      Unregisters a Strategy
      Parameters:
      strategy - to unregister
    • getStrategies

      public static List<WikiCommandStrategy> getStrategies()
      Get the registered strategies
    • getStrategiesPrioritized

      public static List<WikiCommandStrategy> getStrategiesPrioritized()
      Get a prioritzed list of the registered strategies