Package net.minecraft.loot
Class LootManager
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloader<Map<Identifier,JsonElement>>
net.minecraft.resource.JsonDataLoader
net.minecraft.loot.LootManager
- All Implemented Interfaces:
ResourceReloader
- Mappings:
Namespace Name official drkintermediary net/minecraft/class_60named net/minecraft/loot/LootManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LootConditionManagerprivate static final Gsonprivate static final org.slf4j.Loggerprivate Map<Identifier,LootTable> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(Map<Identifier, JsonElement> map, ResourceManager resourceManager, Profiler profiler) Handles the prepared intermediate object.getTable(Identifier id) static JsonElementstatic voidvalidate(LootTableReporter reporter, Identifier id, LootTable table) 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
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official aLdrk;a:Lorg/slf4j/Logger;intermediary field_975Lnet/minecraft/class_60;field_975:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/loot/LootManager;LOGGER:Lorg/slf4j/Logger;
-
GSON
- Mappings:
Namespace Name Mixin selector official bLdrk;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
- Mappings:
Namespace Name Mixin selector official cLdrk;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
- Mappings:
Namespace Name Mixin selector official dLdrk;d:Ldrl;intermediary field_20752Lnet/minecraft/class_60;field_20752:Lnet/minecraft/class_4567;named conditionManagerLnet/minecraft/loot/LootManager;conditionManager:Lnet/minecraft/loot/condition/LootConditionManager;
-
-
Constructor Details
-
LootManager
- Mappings:
Namespace Name Mixin selector official <init>Ldrk;<init>(Ldrl;)Vintermediary <init>Lnet/minecraft/class_60;<init>(Lnet/minecraft/class_4567;)Vnamed <init>Lnet/minecraft/loot/LootManager;<init>(Lnet/minecraft/loot/condition/LootConditionManager;)V
-
-
Method Details
-
getTable
- Mappings:
Namespace Name Mixin selector official aLdrk;a(Laaj;)Ldrj;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) 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 aLdrk;a(Ljava/util/Map;Lahu;Lawc;)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
- Mappings:
Namespace Name Mixin selector official aLdrk;a(Ldro;Laaj;Ldrj;)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
- Mappings:
Namespace Name Mixin selector official aLdrk;a(Ldrj;)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
- Mappings:
Namespace Name Mixin selector official aLdrk;a()Ljava/util/Set;intermediary method_370Lnet/minecraft/class_60;method_370()Ljava/util/Set;named getTableIdsLnet/minecraft/loot/LootManager;getTableIds()Ljava/util/Set;
-