Package net.minecraft.loot
Class LootPredicateManager
- java.lang.Object
-
- net.minecraft.client.resources.ReloadListener<java.util.Map<ResourceLocation,com.google.gson.JsonElement>>
-
- net.minecraft.client.resources.JsonReloadListener
-
- net.minecraft.loot.LootPredicateManager
-
- All Implemented Interfaces:
IFutureReloadListener
public class LootPredicateManager extends JsonReloadListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
LootPredicateManager.AndCombiner
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<ResourceLocation,ILootCondition>
conditions
private static com.google.gson.Gson
GSON
private static org.apache.logging.log4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description LootPredicateManager()
-
Method Summary
All 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_)
ILootCondition
get(ResourceLocation p_227517_1_)
java.util.Set<ResourceLocation>
getKeys()
-
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
-
conditions
private java.util.Map<ResourceLocation,ILootCondition> conditions
-
-
Method Detail
-
get
@Nullable public ILootCondition get(ResourceLocation p_227517_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>>
-
getKeys
public java.util.Set<ResourceLocation> getKeys()
-
-