Class LootDataManager
java.lang.Object
net.minecraft.world.level.storage.loot.LootDataManager
- All Implemented Interfaces:
- PreparableReloadListener,- LootDataResolver
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenerPreparableReloadListener.PreparationBarrier
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate Map<LootDataId<?>,?> static final LootDataId<LootTable>private static final com.google.gson.Gsonprivate static final org.slf4j.Loggerprivate com.google.common.collect.Multimap<LootDataType<?>,ResourceLocation> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidapply(Map<LootDataType<?>, Map<ResourceLocation, ?>> p_279426_) private static <T> voidcastAndValidate(ValidationContext p_279270_, LootDataId<T> p_279249_, Object p_279342_) <T> TgetElement(LootDataId<T> p_279467_) getKeys(LootDataType<?> p_279455_) final CompletableFuture<Void>reload(PreparableReloadListener.PreparationBarrier p_279240_, ResourceManager p_279377_, ProfilerFiller p_279135_, ProfilerFiller p_279088_, Executor p_279148_, Executor p_279169_) private static <T> CompletableFuture<?>scheduleElementParse(LootDataType<T> p_279205_, ResourceManager p_279441_, Executor p_279233_, Map<LootDataType<?>, Map<ResourceLocation, ?>> p_279241_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.storage.loot.LootDataResolvergetElement, getElementOptional, getElementOptional, getLootTableMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenergetName
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
GSONprivate static final com.google.gson.Gson GSON
- 
EMPTY_LOOT_TABLE_KEY
- 
elements
- 
typeKeys
 
- 
- 
Constructor Details- 
LootDataManagerpublic LootDataManager()
 
- 
- 
Method Details- 
reloadpublic final CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier p_279240_, ResourceManager p_279377_, ProfilerFiller p_279135_, ProfilerFiller p_279088_, Executor p_279148_, Executor p_279169_) - Specified by:
- reloadin interface- PreparableReloadListener
 
- 
scheduleElementParseprivate static <T> CompletableFuture<?> scheduleElementParse(LootDataType<T> p_279205_, ResourceManager p_279441_, Executor p_279233_, Map<LootDataType<?>, Map<ResourceLocation, ?>> p_279241_) 
- 
apply
- 
castAndValidateprivate static <T> void castAndValidate(ValidationContext p_279270_, LootDataId<T> p_279249_, Object p_279342_) 
- 
getElement- Specified by:
- getElementin interface- LootDataResolver
 
- 
getKeys
 
-