Class LootTableParserUtil
java.lang.Object
pl.szczurowsky.loottableparser.util.LootTableParserUtil
Utility class for parsing loot tables.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LootTableObject
parseJsonObject
(com.google.gson.JsonObject jsonObject) Parses a loot table from a JSON object.
-
Method Details
-
parseJsonObject
public static LootTableObject parseJsonObject(com.google.gson.JsonObject jsonObject) throws NotALootTableException Parses a loot table from a JSON object.- Parameters:
jsonObject
- The JSON object to parse.- Returns:
- The parsed loot table.
- Throws:
NotALootTableException
- If the JSON object is not a loot table.
-