Package net.minecraft.loot.function
Class LootFunctionManager
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloader<Map<Identifier,JsonElement>>
net.minecraft.resource.JsonDataLoader
net.minecraft.loot.function.LootFunctionManager
- All Implemented Interfaces:
ResourceReloader
public class LootFunctionManager extends JsonDataLoader
- Mappings:
Namespace Name official dhmintermediary net/minecraft/class_5640named net/minecraft/loot/function/LootFunctionManager
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classLootFunctionManager.AndFunctionNested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer -
Field Summary
Fields Modifier and Type Field Description private Map<Identifier,LootFunction>functionsprivate static GsonGSONprivate static LoggerLOGGERprivate LootConditionManagerlootConditionManagerprivate LootManagerlootManager -
Constructor Summary
Constructors Constructor Description LootFunctionManager(LootConditionManager lootConditionManager, LootManager lootManager) -
Method Summary
Modifier and Type Method Description protected voidapply(Map<Identifier,JsonElement> map, ResourceManager resourceManager, Profiler profiler)Handles the prepared intermediate object.@Nullable LootFunctionget(Identifier id)Set<Identifier>getFunctionIds()LootFunctionmethod_35507(Identifier identifier, LootFunction lootFunction)Methods inherited from class net.minecraft.resource.JsonDataLoader
prepareMethods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resource.ResourceReloader
getName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLdhm;a:Lorg/apache/logging/log4j/Logger;intermediary field_27899Lnet/minecraft/class_5640;field_27899:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/loot/function/LootFunctionManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
GSON
- Mappings:
Namespace Name Mixin selector official bLdhm;b:Lcom/google/gson/Gson;intermediary field_27900Lnet/minecraft/class_5640;field_27900:Lcom/google/gson/Gson;named GSONLnet/minecraft/loot/function/LootFunctionManager;GSON:Lcom/google/gson/Gson;
-
lootConditionManager
- Mappings:
Namespace Name Mixin selector official cLdhm;c:Ldhs;intermediary field_27901Lnet/minecraft/class_5640;field_27901:Lnet/minecraft/class_4567;named lootConditionManagerLnet/minecraft/loot/function/LootFunctionManager;lootConditionManager:Lnet/minecraft/loot/condition/LootConditionManager;
-
lootManager
- Mappings:
Namespace Name Mixin selector official dLdhm;d:Ldhr;intermediary field_27902Lnet/minecraft/class_5640;field_27902:Lnet/minecraft/class_60;named lootManagerLnet/minecraft/loot/function/LootFunctionManager;lootManager:Lnet/minecraft/loot/LootManager;
-
functions
- Mappings:
Namespace Name Mixin selector official eLdhm;e:Ljava/util/Map;intermediary field_27903Lnet/minecraft/class_5640;field_27903:Ljava/util/Map;named functionsLnet/minecraft/loot/function/LootFunctionManager;functions:Ljava/util/Map;
-
-
Constructor Details
-
LootFunctionManager
- Mappings:
Namespace Name Mixin selector official <init>Ldhm;<init>(Ldhs;Ldhr;)Vintermediary <init>Lnet/minecraft/class_5640;<init>(Lnet/minecraft/class_4567;Lnet/minecraft/class_60;)Vnamed <init>Lnet/minecraft/loot/function/LootFunctionManager;<init>(Lnet/minecraft/loot/condition/LootConditionManager;Lnet/minecraft/loot/LootManager;)V
-
-
Method Details
-
get
- Mappings:
Namespace Name Mixin selector official aLdhm;a(Lwp;)Ldiy;intermediary method_32404Lnet/minecraft/class_5640;method_32404(Lnet/minecraft/class_2960;)Lnet/minecraft/class_117;named getLnet/minecraft/loot/function/LootFunctionManager;get(Lnet/minecraft/util/Identifier;)Lnet/minecraft/loot/function/LootFunction;
-
method_35507
- Mappings:
Namespace Name Mixin selector official aLdhm;a(Lwp;Ldiy;)Ldiy;intermediary method_35507Lnet/minecraft/class_5640;method_35507(Lnet/minecraft/class_2960;Lnet/minecraft/class_117;)Lnet/minecraft/class_117;named method_35507Lnet/minecraft/loot/function/LootFunctionManager;method_35507(Lnet/minecraft/util/Identifier;Lnet/minecraft/loot/function/LootFunction;)Lnet/minecraft/loot/function/LootFunction;
-
apply
protected void apply(Map<Identifier,JsonElement> map, ResourceManager resourceManager, Profiler profiler)Description copied from class:SinglePreparationResourceReloaderHandles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- Specified by:
applyin classSinglePreparationResourceReloader<Map<Identifier,JsonElement>>- Parameters:
map- the prepared objectresourceManager- the resource managerprofiler- the apply profiler- Mappings:
Namespace Name Mixin selector official aLdhm;a(Ljava/util/Map;Ladl;Lapl;)Vintermediary method_32403Lnet/minecraft/class_5640;method_32403(Ljava/util/Map;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Vnamed applyLnet/minecraft/loot/function/LootFunctionManager;apply(Ljava/util/Map;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)V
-
getFunctionIds
- Mappings:
Namespace Name Mixin selector official aLdhm;a()Ljava/util/Set;intermediary method_32399Lnet/minecraft/class_5640;method_32399()Ljava/util/Set;named getFunctionIdsLnet/minecraft/loot/function/LootFunctionManager;getFunctionIds()Ljava/util/Set;
-