类 LootManager
- java.lang.Object
-
- net.minecraft.resource.SinglePreparationResourceReloader<Map<Identifier,JsonElement>>
-
- net.minecraft.resource.JsonDataLoader
-
- net.minecraft.loot.LootManager
-
- 所有已实现的接口:
ResourceReloader
public class LootManager extends JsonDataLoader
- Mappings:
Namespace Name official dhtintermediary net/minecraft/class_60named net/minecraft/loot/LootManager
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer
-
-
字段概要
字段 修饰符和类型 字段 说明 private LootConditionManagerconditionManagerprivate static GsonGSONprivate static LoggerLOGGERprivate Map<Identifier,LootTable>tables
-
构造器概要
构造器 构造器 说明 LootManager(LootConditionManager conditionManager)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidapply(Map<Identifier,JsonElement> map, ResourceManager resourceManager, Profiler profiler)Handles the prepared intermediate object.LootTablegetTable(Identifier id)Set<Identifier>getTableIds()static JsonElementtoJson(LootTable table)static voidvalidate(LootTableReporter reporter, Identifier id, LootTable table)-
从类继承的方法 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 aLdht;a:Lorg/apache/logging/log4j/Logger;intermediary field_975Lnet/minecraft/class_60;field_975:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/loot/LootManager;LOGGER:Lorg/apache/logging/log4j/Logger;
-
GSON
private static final Gson GSON
- Mappings:
Namespace Name Mixin selector official bLdht;b:Lcom/google/gson/Gson;intermediary field_974Lnet/minecraft/class_60;field_974:Lcom/google/gson/Gson;named GSONLnet/minecraft/loot/LootManager;GSON:Lcom/google/gson/Gson;
-
tables
private Map<Identifier,LootTable> tables
- Mappings:
Namespace Name Mixin selector official cLdht;c:Ljava/util/Map;intermediary field_970Lnet/minecraft/class_60;field_970:Ljava/util/Map;named tablesLnet/minecraft/loot/LootManager;tables:Ljava/util/Map;
-
conditionManager
private final LootConditionManager conditionManager
- Mappings:
Namespace Name Mixin selector official dLdht;d:Ldhu;intermediary field_20752Lnet/minecraft/class_60;field_20752:Lnet/minecraft/class_4567;named conditionManagerLnet/minecraft/loot/LootManager;conditionManager:Lnet/minecraft/loot/condition/LootConditionManager;
-
-
构造器详细资料
-
LootManager
public LootManager(LootConditionManager conditionManager)
- Mappings:
Namespace Name Mixin selector official <init>Ldht;<init>(Ldhu;)Vintermediary <init>Lnet/minecraft/class_60;<init>(Lnet/minecraft/class_4567;)Vnamed <init>Lnet/minecraft/loot/LootManager;<init>(Lnet/minecraft/loot/condition/LootConditionManager;)V
-
-
方法详细资料
-
getTable
public LootTable getTable(Identifier id)
- Mappings:
Namespace Name Mixin selector official aLdht;a(Lwp;)Ldhs;intermediary method_367Lnet/minecraft/class_60;method_367(Lnet/minecraft/class_2960;)Lnet/minecraft/class_52;named getTableLnet/minecraft/loot/LootManager;getTable(Lnet/minecraft/util/Identifier;)Lnet/minecraft/loot/LootTable;
-
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 aLdht;a(Ljava/util/Map;Ladl;Lapl;)Vintermediary method_20712Lnet/minecraft/class_60;method_20712(Ljava/util/Map;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Vnamed applyLnet/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 aLdht;a(Ldhx;Lwp;Ldhs;)Vintermediary method_369Lnet/minecraft/class_60;method_369(Lnet/minecraft/class_58;Lnet/minecraft/class_2960;Lnet/minecraft/class_52;)Vnamed validateLnet/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 aLdht;a(Ldhs;)Lcom/google/gson/JsonElement;intermediary method_372Lnet/minecraft/class_60;method_372(Lnet/minecraft/class_52;)Lcom/google/gson/JsonElement;named toJsonLnet/minecraft/loot/LootManager;toJson(Lnet/minecraft/loot/LootTable;)Lcom/google/gson/JsonElement;
-
getTableIds
public Set<Identifier> getTableIds()
- Mappings:
Namespace Name Mixin selector official aLdht;a()Ljava/util/Set;intermediary method_370Lnet/minecraft/class_60;method_370()Ljava/util/Set;named getTableIdsLnet/minecraft/loot/LootManager;getTableIds()Ljava/util/Set;
-
-