Interface ExportedGuide
@Experimental
@NonExtendable
public interface ExportedGuide
Access to the guide data that was previously exported from the game.
-
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectgetExtraData(String identifier) Returns mod specific data that was exported alongside the guide.getFluidInfo(String fluidId) getItemInfo(String itemId) @Nullable StringgetPageIdForItem(String itemId) Returns the id of the page that is the primary page for the given item, or null if no such page exists.@Nullable ExportedRecipegetRecipeById(String recipeId) List<? extends ExportedRecipe> getRecipesForItem(String itemId) Returns all recipes that produce the given item.booleanpageExists(String pageId) Resolves a potentially namespace-less id to an id that is guaranteed to have a namespace by using the default namespace of the guide.@Nullable ExportedFluidInfotryGetFluidInfo(String fluidId) @Nullable ExportedItemInfotryGetItemInfo(String itemId)
-
Method Details
-
getDefaultNamespace
String getDefaultNamespace() -
resolveId
-
tryGetItemInfo
-
getItemInfo
- Throws:
IllegalArgumentException- If the item was not exported.
-
tryGetFluidInfo
-
getFluidInfo
- Throws:
IllegalArgumentException- If the fluid was not exported.
-
getRecipeById
-
getRecipesForItem
Returns all recipes that produce the given item.- Returns:
- all recipes that produce the given item
-
pageExists
-
getPageIdForItem
-
getExtraData
-