类 LootFunctionManager

  • 所有已实现的接口:
    ResourceReloader

    public class LootFunctionManager
    extends JsonDataLoader
    Mappings:
    Namespace Name
    official dho
    intermediary net/minecraft/class_5640
    named net/minecraft/loot/function/LootFunctionManager
    • 字段详细资料

      • LOGGER

        private static final Logger LOGGER
        Mappings:
        Namespace Name Mixin selector
        official a Ldho;a:Lorg/apache/logging/log4j/Logger;
        intermediary field_27899 Lnet/minecraft/class_5640;field_27899:Lorg/apache/logging/log4j/Logger;
        named LOGGER Lnet/minecraft/loot/function/LootFunctionManager;LOGGER:Lorg/apache/logging/log4j/Logger;
      • GSON

        private static final Gson GSON
        Mappings:
        Namespace Name Mixin selector
        official b Ldho;b:Lcom/google/gson/Gson;
        intermediary field_27900 Lnet/minecraft/class_5640;field_27900:Lcom/google/gson/Gson;
        named GSON Lnet/minecraft/loot/function/LootFunctionManager;GSON:Lcom/google/gson/Gson;
      • lootConditionManager

        private final LootConditionManager lootConditionManager
        Mappings:
        Namespace Name Mixin selector
        official c Ldho;c:Ldhu;
        intermediary field_27901 Lnet/minecraft/class_5640;field_27901:Lnet/minecraft/class_4567;
        named lootConditionManager Lnet/minecraft/loot/function/LootFunctionManager;lootConditionManager:Lnet/minecraft/loot/condition/LootConditionManager;
      • lootManager

        private final LootManager lootManager
        Mappings:
        Namespace Name Mixin selector
        official d Ldho;d:Ldht;
        intermediary field_27902 Lnet/minecraft/class_5640;field_27902:Lnet/minecraft/class_60;
        named lootManager Lnet/minecraft/loot/function/LootFunctionManager;lootManager:Lnet/minecraft/loot/LootManager;
      • functions

        private Map<Identifier,​LootFunction> functions
        Mappings:
        Namespace Name Mixin selector
        official e Ldho;e:Ljava/util/Map;
        intermediary field_27903 Lnet/minecraft/class_5640;field_27903:Ljava/util/Map;
        named functions Lnet/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;)V
        intermediary <init> Lnet/minecraft/class_5640;<init>(Lnet/minecraft/class_4567;Lnet/minecraft/class_60;)V
        named <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 a Ldho;a(Lwp;)Ldja;
        intermediary method_32404 Lnet/minecraft/class_5640;method_32404(Lnet/minecraft/class_2960;)Lnet/minecraft/class_117;
        named get Lnet/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 a Ldho;a(Lwp;Ldja;)Ldja;
        intermediary method_35507 Lnet/minecraft/class_5640;method_35507(Lnet/minecraft/class_2960;Lnet/minecraft/class_117;)Lnet/minecraft/class_117;
        named getOrDefault Lnet/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)
        从类复制的说明: SinglePreparationResourceReloader
        Handles 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 object
        resourceManager - the resource manager
        profiler - the apply profiler
        Mappings:
        Namespace Name Mixin selector
        official a Ldho;a(Ljava/util/Map;Ladl;Lapl;)V
        intermediary method_32403 Lnet/minecraft/class_5640;method_32403(Ljava/util/Map;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)V
        named apply Lnet/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 a Ldho;a()Ljava/util/Set;
        intermediary method_32399 Lnet/minecraft/class_5640;method_32399()Ljava/util/Set;
        named getFunctionIds Lnet/minecraft/loot/function/LootFunctionManager;getFunctionIds()Ljava/util/Set;