Class LootTables
java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<ResourceLocation,com.google.gson.JsonElement>>
net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
net.minecraft.world.level.storage.loot.LootTables
- All Implemented Interfaces:
PreparableReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.google.gson.Gsonprivate static final org.slf4j.Loggerprivate final PredicateManagerprivate Map<ResourceLocation,LootTable> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(Map<ResourceLocation, com.google.gson.JsonElement> p_79214_, ResourceManager p_79215_, ProfilerFiller p_79216_) get(ResourceLocation p_79218_) getIds()static com.google.gson.JsonElementstatic voidvalidate(ValidationContext p_79203_, ResourceLocation p_79204_, LootTable p_79205_) Methods inherited from class net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
getPreparedPath, prepareMethods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
GSON
private static final com.google.gson.Gson GSON -
tables
-
predicateManager
-
-
Constructor Details
-
LootTables
-
-
Method Details
-
get
-
apply
protected void apply(Map<ResourceLocation, com.google.gson.JsonElement> p_79214_, ResourceManager p_79215_, ProfilerFiller p_79216_) - Specified by:
applyin classSimplePreparableReloadListener<Map<ResourceLocation,com.google.gson.JsonElement>>
-
validate
public static void validate(ValidationContext p_79203_, ResourceLocation p_79204_, LootTable p_79205_) -
serialize
-
getIds
-