Class WikiCommandStrategyLoader
java.lang.Object
com.pixelmonmod.pixelmon.api.command.WikiCommandStrategyLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexecuteStrategy(net.minecraft.commands.CommandSourceStack sender, Pokemon pokemon, String[] specs, String strategyId) Execute strategy for provided strategyId, or default strategy, on a source for a pokemonstatic List<WikiCommandStrategy>Get the registered strategiesstatic List<WikiCommandStrategy>Get a prioritzed list of the registered strategiesstatic Optional<WikiCommandStrategy>getStrategy(String strategyId) Find the strategy matching the provided argumentstatic voidregisterStrategy(WikiCommandStrategy strategy) Register a Custom Wiki Strategystatic voidunregisterStrategy(WikiCommandStrategy strategy) Unregisters a Strategy
-
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 outputpokemon- which the strategy should be applied uponspecs- of the pokemon
-
getStrategy
Find the strategy matching the provided argument- Parameters:
strategyId- of the strategy- Returns:
- the strategy if found, otherwise Optional.Empty
-
registerStrategy
Register a Custom Wiki Strategy- Parameters:
strategy- to register
-
unregisterStrategy
Unregisters a Strategy- Parameters:
strategy- to unregister
-
getStrategies
Get the registered strategies -
getStrategiesPrioritized
Get a prioritzed list of the registered strategies
-