Interface IKnowledgeManager
public interface IKnowledgeManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidforgetInformation(ResourceName name, boolean announce) voidforgetRecipe(PlayerCompendiumRecipe recipe) voidforgetRecipe(PlayerCompendiumRecipe recipe, boolean announce) getInformation(ResourceName name) <T extends Information>
TgetInformation(ResourceName name, Class<T> infoClass) booleanknowsInformation(ResourceName name) booleanknowsRecipe(PlayerCompendiumRecipe recipe) voidteachInformation(Information information) voidteachInformation(Information information, boolean announce) booleanteachRecipe(PlayerCompendiumRecipe recipe) booleanteachRecipe(PlayerCompendiumRecipe recipe, boolean announce) Tries to teach the recipe to the playervoidteachRecipes(List<PlayerCompendiumRecipe> recipes) Teaches many recipes with a single toast notification
-
Method Details
-
knowsRecipe
-
knowsInformation
-
getInformation
-
getInformation
-
teachRecipe
Tries to teach the recipe to the player- Parameters:
recipe- the recipe to teachannounce- Should the player recieve a toast to inform them of their discovery?- Returns:
- True if the player did not already know the recipe
-
teachRecipe
-
teachRecipes
Teaches many recipes with a single toast notification- Parameters:
recipes- A list of recipes to be taught
-
teachInformation
-
teachInformation
-
forgetRecipe
-
forgetRecipe
-
forgetInformation
-
forgetInformation
-