Package net.minecraft.loot
Class LootManager
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloadListener<Map<Identifier,JsonElement>>
net.minecraft.resource.JsonDataLoader
net.minecraft.loot.LootManager
- All Implemented Interfaces:
ResourceReloadListener
public class LootManager extends JsonDataLoader
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloadListener
ResourceReloadListener.Synchronizer
-
Field Summary
Fields Modifier and Type Field Description private LootConditionManager
conditionManager
private static Gson
GSON
private static Logger
LOGGER
private Map<Identifier,LootTable>
tables
-
Constructor Summary
Constructors Constructor Description LootManager(LootConditionManager conditionManager)
-
Method Summary
Modifier and Type Method Description protected void
apply(Map<Identifier,JsonElement> map, ResourceManager resourceManager, Profiler profiler)
LootTable
getTable(Identifier id)
Set<Identifier>
getTableIds()
static JsonElement
toJson(LootTable table)
static void
validate(LootTableReporter reporter, Identifier id, LootTable table)
Methods inherited from class net.minecraft.resource.JsonDataLoader
prepare
Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloadListener
reload
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.ResourceReloadListener
getName
-
Field Details
-
LOGGER
-
GSON
-
tables
-
conditionManager
-
-
Constructor Details
-
LootManager
-
-
Method Details
-
getTable
-
apply
protected void apply(Map<Identifier,JsonElement> map, ResourceManager resourceManager, Profiler profiler)- Specified by:
apply
in classSinglePreparationResourceReloadListener<Map<Identifier,JsonElement>>
-
validate
-
toJson
-
getTableIds
-