类 LootFunctionManager
- java.lang.Object
-
- net.minecraft.resource.SinglePreparationResourceReloader<Map<Identifier,JsonElement>>
-
- net.minecraft.resource.JsonDataLoader
-
- net.minecraft.loot.function.LootFunctionManager
-
- 所有已实现的接口:
ResourceReloader
public class LootFunctionManager extends JsonDataLoader
- Mappings:
Namespace Name official dhointermediary net/minecraft/class_5640named net/minecraft/loot/function/LootFunctionManager
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) static classLootFunctionManager.AndFunction-
从接口继承的嵌套类/接口 net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer
-
-
字段概要
字段 修饰符和类型 字段 说明 private Map<Identifier,LootFunction>functionsprivate static GsonGSONprivate static LoggerLOGGERprivate LootConditionManagerlootConditionManagerprivate LootManagerlootManager
-
构造器概要
构造器 构造器 说明 LootFunctionManager(LootConditionManager lootConditionManager, LootManager lootManager)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidapply(Map<Identifier,JsonElement> map, ResourceManager resourceManager, Profiler profiler)Handles the prepared intermediate object.@Nullable LootFunctionget(Identifier id)Set<Identifier>getFunctionIds()LootFunctiongetOrDefault(Identifier id, LootFunction fallback)-
从类继承的方法 net.minecraft.resource.JsonDataLoader
prepare
-
从类继承的方法 net.minecraft.resource.SinglePreparationResourceReloader
reload
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.resource.ResourceReloader
getName
-
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official aLdho;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
private static final Gson GSON
- Mappings:
Namespace Name Mixin selector official bLdho;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
private final LootConditionManager lootConditionManager
- Mappings:
Namespace Name Mixin selector official cLdho;c:Ldhu;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
private final LootManager lootManager
- Mappings:
Namespace Name Mixin selector official dLdho;d:Ldht;intermediary field_27902Lnet/minecraft/class_5640;field_27902:Lnet/minecraft/class_60;named lootManagerLnet/minecraft/loot/function/LootFunctionManager;lootManager:Lnet/minecraft/loot/LootManager;
-
functions
private Map<Identifier,LootFunction> functions
- Mappings:
Namespace Name Mixin selector official eLdho;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;
-
-
构造器详细资料
-
LootFunctionManager
public LootFunctionManager(LootConditionManager lootConditionManager, LootManager lootManager)
- Mappings:
Namespace Name Mixin selector official <init>Ldho;<init>(Ldhu;Ldht;)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
-
-
方法详细资料
-
get
@Nullable public @Nullable LootFunction get(Identifier id)
- Mappings:
Namespace Name Mixin selector official aLdho;a(Lwp;)Ldja;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;
-
getOrDefault
public LootFunction getOrDefault(Identifier id, LootFunction fallback)
- Mappings:
Namespace Name Mixin selector official aLdho;a(Lwp;Ldja;)Ldja;intermediary method_35507Lnet/minecraft/class_5640;method_35507(Lnet/minecraft/class_2960;Lnet/minecraft/class_117;)Lnet/minecraft/class_117;named getOrDefaultLnet/minecraft/loot/function/LootFunctionManager;getOrDefault(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)
从类复制的说明:SinglePreparationResourceReloaderHandles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- 指定者:
apply在类中SinglePreparationResourceReloader<Map<Identifier,JsonElement>>- 参数:
map- the prepared objectresourceManager- the resource managerprofiler- the apply profiler- Mappings:
Namespace Name Mixin selector official aLdho;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
public Set<Identifier> getFunctionIds()
- Mappings:
Namespace Name Mixin selector official aLdho;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;
-
-