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
Modifier and TypeFieldDescriptionprivate static com.google.gson.Gson
private static org.apache.logging.log4j.Logger
private PredicateManager
private Map<ResourceLocation,LootTable>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
apply(Map<ResourceLocation,com.google.gson.JsonElement> p_79214_, ResourceManager p_79215_, ProfilerFiller p_79216_)
get(ResourceLocation p_79218_)
getIds()
static com.google.gson.JsonElement
static void
validate(ValidationContext p_79203_, ResourceLocation p_79204_, LootTable p_79205_)
Methods inherited from class net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
getPreparedPath, prepare
Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
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.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.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:
apply
in classSimplePreparableReloadListener<Map<ResourceLocation,com.google.gson.JsonElement>>
-
validate
public static void validate(ValidationContext p_79203_, ResourceLocation p_79204_, LootTable p_79205_) -
serialize
-
getIds
-