类 LootManager

  • 所有已实现的接口:
    ResourceReloader

    public class LootManager
    extends JsonDataLoader
    Mappings:
    Namespace Name
    official dht
    intermediary net/minecraft/class_60
    named net/minecraft/loot/LootManager
    • 字段详细资料

      • LOGGER

        private static final Logger LOGGER
        Mappings:
        Namespace Name Mixin selector
        official a Ldht;a:Lorg/apache/logging/log4j/Logger;
        intermediary field_975 Lnet/minecraft/class_60;field_975:Lorg/apache/logging/log4j/Logger;
        named LOGGER Lnet/minecraft/loot/LootManager;LOGGER:Lorg/apache/logging/log4j/Logger;
      • GSON

        private static final Gson GSON
        Mappings:
        Namespace Name Mixin selector
        official b Ldht;b:Lcom/google/gson/Gson;
        intermediary field_974 Lnet/minecraft/class_60;field_974:Lcom/google/gson/Gson;
        named GSON Lnet/minecraft/loot/LootManager;GSON:Lcom/google/gson/Gson;
      • tables

        private Map<Identifier,​LootTable> tables
        Mappings:
        Namespace Name Mixin selector
        official c Ldht;c:Ljava/util/Map;
        intermediary field_970 Lnet/minecraft/class_60;field_970:Ljava/util/Map;
        named tables Lnet/minecraft/loot/LootManager;tables:Ljava/util/Map;
      • conditionManager

        private final LootConditionManager conditionManager
        Mappings:
        Namespace Name Mixin selector
        official d Ldht;d:Ldhu;
        intermediary field_20752 Lnet/minecraft/class_60;field_20752:Lnet/minecraft/class_4567;
        named conditionManager Lnet/minecraft/loot/LootManager;conditionManager:Lnet/minecraft/loot/condition/LootConditionManager;
    • 构造器详细资料

      • LootManager

        public LootManager​(LootConditionManager conditionManager)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldht;<init>(Ldhu;)V
        intermediary <init> Lnet/minecraft/class_60;<init>(Lnet/minecraft/class_4567;)V
        named <init> Lnet/minecraft/loot/LootManager;<init>(Lnet/minecraft/loot/condition/LootConditionManager;)V
    • 方法详细资料

      • getTable

        public LootTable getTable​(Identifier id)
        Mappings:
        Namespace Name Mixin selector
        official a Ldht;a(Lwp;)Ldhs;
        intermediary method_367 Lnet/minecraft/class_60;method_367(Lnet/minecraft/class_2960;)Lnet/minecraft/class_52;
        named getTable Lnet/minecraft/loot/LootManager;getTable(Lnet/minecraft/util/Identifier;)Lnet/minecraft/loot/LootTable;
      • 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 Ldht;a(Ljava/util/Map;Ladl;Lapl;)V
        intermediary method_20712 Lnet/minecraft/class_60;method_20712(Ljava/util/Map;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)V
        named apply Lnet/minecraft/loot/LootManager;apply(Ljava/util/Map;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)V
      • validate

        public static void validate​(LootTableReporter reporter,
                                    Identifier id,
                                    LootTable table)
        Mappings:
        Namespace Name Mixin selector
        official a Ldht;a(Ldhx;Lwp;Ldhs;)V
        intermediary method_369 Lnet/minecraft/class_60;method_369(Lnet/minecraft/class_58;Lnet/minecraft/class_2960;Lnet/minecraft/class_52;)V
        named validate Lnet/minecraft/loot/LootManager;validate(Lnet/minecraft/loot/LootTableReporter;Lnet/minecraft/util/Identifier;Lnet/minecraft/loot/LootTable;)V
      • toJson

        public static JsonElement toJson​(LootTable table)
        Mappings:
        Namespace Name Mixin selector
        official a Ldht;a(Ldhs;)Lcom/google/gson/JsonElement;
        intermediary method_372 Lnet/minecraft/class_60;method_372(Lnet/minecraft/class_52;)Lcom/google/gson/JsonElement;
        named toJson Lnet/minecraft/loot/LootManager;toJson(Lnet/minecraft/loot/LootTable;)Lcom/google/gson/JsonElement;
      • getTableIds

        public Set<Identifier> getTableIds()
        Mappings:
        Namespace Name Mixin selector
        official a Ldht;a()Ljava/util/Set;
        intermediary method_370 Lnet/minecraft/class_60;method_370()Ljava/util/Set;
        named getTableIds Lnet/minecraft/loot/LootManager;getTableIds()Ljava/util/Set;