Package net.minecraft.loot
Class LootTableManager
- java.lang.Object
-
- net.minecraft.client.resources.ReloadListener<java.util.Map<ResourceLocation,com.google.gson.JsonElement>>
-
- net.minecraft.client.resources.JsonReloadListener
-
- net.minecraft.loot.LootTableManager
-
- All Implemented Interfaces:
IFutureReloadListener
public class LootTableManager extends JsonReloadListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description private static com.google.gson.Gson
GSON
private static org.apache.logging.log4j.Logger
LOGGER
private LootPredicateManager
predicateManager
private java.util.Map<ResourceLocation,LootTable>
tables
-
Constructor Summary
Constructors Constructor Description LootTableManager(LootPredicateManager p_i225887_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
apply(java.util.Map<ResourceLocation,com.google.gson.JsonElement> p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_)
LootTable
get(ResourceLocation p_186521_1_)
java.util.Set<ResourceLocation>
getIds()
static com.google.gson.JsonElement
serialize(LootTable p_215301_0_)
static void
validate(ValidationTracker p_227508_0_, ResourceLocation p_227508_1_, LootTable p_227508_2_)
-
Methods inherited from class net.minecraft.client.resources.JsonReloadListener
getPreparedPath, prepare
-
Methods inherited from class net.minecraft.client.resources.ReloadListener
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.resources.IFutureReloadListener
getName
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
GSON
private static final com.google.gson.Gson GSON
-
tables
private java.util.Map<ResourceLocation,LootTable> tables
-
predicateManager
private final LootPredicateManager predicateManager
-
-
Constructor Detail
-
LootTableManager
public LootTableManager(LootPredicateManager p_i225887_1_)
-
-
Method Detail
-
get
public LootTable get(ResourceLocation p_186521_1_)
-
apply
protected void apply(java.util.Map<ResourceLocation,com.google.gson.JsonElement> p_212853_1_, IResourceManager p_212853_2_, IProfiler p_212853_3_)
- Specified by:
apply
in classReloadListener<java.util.Map<ResourceLocation,com.google.gson.JsonElement>>
-
validate
public static void validate(ValidationTracker p_227508_0_, ResourceLocation p_227508_1_, LootTable p_227508_2_)
-
serialize
public static com.google.gson.JsonElement serialize(LootTable p_215301_0_)
-
getIds
public java.util.Set<ResourceLocation> getIds()
-
-