public class WikiCommandStrategyLoader
extends java.lang.Object
Constructor and Description |
---|
WikiCommandStrategyLoader() |
Modifier and Type | Method and Description |
---|---|
static void |
executeStrategy(net.minecraft.command.CommandSource sender,
Pokemon pokemon,
java.lang.String[] specs,
java.lang.String strategyId)
Execute strategy for provided strategyId, or default strategy, on a source for a pokemon
|
static java.util.List<WikiCommandStrategy> |
getStrategies()
Get the registered strategies
|
static java.util.List<WikiCommandStrategy> |
getStrategiesPrioritized()
Get a prioritzed list of the registered strategies
|
static java.util.Optional<WikiCommandStrategy> |
getStrategy(java.lang.String strategyId)
Find the strategy matching the provided argument
|
static void |
registerStrategy(WikiCommandStrategy strategy)
Register a Custom Wiki Strategy
|
static void |
unregisterStrategy(WikiCommandStrategy strategy)
Unregisters a Strategy
|
public static void executeStrategy(net.minecraft.command.CommandSource sender, Pokemon pokemon, java.lang.String[] specs, java.lang.String strategyId)
sender
- who should receive the strategy outputpokemon
- which the strategy should be applied uponspecs
- of the pokemonpublic static java.util.Optional<WikiCommandStrategy> getStrategy(java.lang.String strategyId)
strategyId
- of the strategypublic static void registerStrategy(WikiCommandStrategy strategy)
strategy
- to registerpublic static void unregisterStrategy(WikiCommandStrategy strategy)
strategy
- to unregisterpublic static java.util.List<WikiCommandStrategy> getStrategies()
public static java.util.List<WikiCommandStrategy> getStrategiesPrioritized()