public interface IKnowledgeManager
| Modifier and Type | Method and Description |
|---|---|
void |
forgetInformation(ResourceName name) |
void |
forgetInformation(ResourceName name,
boolean announce) |
void |
forgetRecipe(PlayerCompendiumRecipe recipe) |
void |
forgetRecipe(PlayerCompendiumRecipe recipe,
boolean announce) |
Information |
getInformation(ResourceName name) |
<T extends Information> |
getInformation(ResourceName name,
java.lang.Class<T> infoClass) |
boolean |
knowsInformation(ResourceName name) |
boolean |
knowsRecipe(PlayerCompendiumRecipe recipe) |
void |
teachInformation(Information information) |
void |
teachInformation(Information information,
boolean announce) |
boolean |
teachRecipe(PlayerCompendiumRecipe recipe) |
boolean |
teachRecipe(PlayerCompendiumRecipe recipe,
boolean announce)
Tries to teach the recipe to the player
|
void |
teachRecipes(java.util.List<PlayerCompendiumRecipe> recipes)
Teaches many recipes with a single toast notification
|
boolean knowsRecipe(PlayerCompendiumRecipe recipe)
boolean knowsInformation(ResourceName name)
Information getInformation(ResourceName name)
<T extends Information> T getInformation(ResourceName name, java.lang.Class<T> infoClass)
boolean teachRecipe(PlayerCompendiumRecipe recipe, boolean announce)
recipe - the recipe to teachannounce - Should the player recieve a toast to inform them of their discovery?boolean teachRecipe(PlayerCompendiumRecipe recipe)
void teachRecipes(java.util.List<PlayerCompendiumRecipe> recipes)
recipes - A list of recipes to be taughtvoid teachInformation(Information information, boolean announce)
void teachInformation(Information information)
void forgetRecipe(PlayerCompendiumRecipe recipe, boolean announce)
void forgetRecipe(PlayerCompendiumRecipe recipe)
void forgetInformation(ResourceName name, boolean announce)
void forgetInformation(ResourceName name)