Package net.minecraft.loot
Class LootDataType<T>
java.lang.Object
net.minecraft.loot.LootDataType<T>
- Mappings:
Namespace Name official ehb
intermediary net/minecraft/class_8490
named net/minecraft/loot/LootDataType
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.serialization.Codec<T>
private final String
static final LootDataType<LootFunction>
private static final Logger
static final LootDataType<LootTable>
static final LootDataType<LootCondition>
private final LootDataType.Validator<T>
-
Constructor Summary
ModifierConstructorDescriptionprivate
LootDataType
(com.mojang.serialization.Codec<T> codec, String id, LootDataType.Validator<T> validator) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
parse
(Identifier id, JsonElement json) static Stream<LootDataType<?>>
stream()
private static LootDataType.Validator<LootTable>
void
validate
(LootTableReporter reporter, LootDataKey<T> key, T value) private static <T extends LootContextAware>
LootDataType.Validator<T>
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official d
Lehb;d:Lorg/slf4j/Logger;
intermediary field_44499
Lnet/minecraft/class_8490;field_44499:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/loot/LootDataType;LOGGER:Lorg/slf4j/Logger;
-
PREDICATES
- Mappings:
Namespace Name Mixin selector official a
Lehb;a:Lehb;
intermediary field_44496
Lnet/minecraft/class_8490;field_44496:Lnet/minecraft/class_8490;
named PREDICATES
Lnet/minecraft/loot/LootDataType;PREDICATES:Lnet/minecraft/loot/LootDataType;
-
ITEM_MODIFIERS
- Mappings:
Namespace Name Mixin selector official b
Lehb;b:Lehb;
intermediary field_44497
Lnet/minecraft/class_8490;field_44497:Lnet/minecraft/class_8490;
named ITEM_MODIFIERS
Lnet/minecraft/loot/LootDataType;ITEM_MODIFIERS:Lnet/minecraft/loot/LootDataType;
-
LOOT_TABLES
- Mappings:
Namespace Name Mixin selector official c
Lehb;c:Lehb;
intermediary field_44498
Lnet/minecraft/class_8490;field_44498:Lnet/minecraft/class_8490;
named LOOT_TABLES
Lnet/minecraft/loot/LootDataType;LOOT_TABLES:Lnet/minecraft/loot/LootDataType;
-
codec
- Mappings:
Namespace Name Mixin selector official e
Lehb;e:Lcom/mojang/serialization/Codec;
intermediary field_45794
Lnet/minecraft/class_8490;field_45794:Lcom/mojang/serialization/Codec;
named codec
Lnet/minecraft/loot/LootDataType;codec:Lcom/mojang/serialization/Codec;
-
id
- Mappings:
Namespace Name Mixin selector official f
Lehb;f:Ljava/lang/String;
intermediary field_44502
Lnet/minecraft/class_8490;field_44502:Ljava/lang/String;
named id
Lnet/minecraft/loot/LootDataType;id:Ljava/lang/String;
-
validator
- Mappings:
Namespace Name Mixin selector official g
Lehb;g:Lehb$a;
intermediary field_44503
Lnet/minecraft/class_8490;field_44503:Lnet/minecraft/class_8490$class_8491;
named validator
Lnet/minecraft/loot/LootDataType;validator:Lnet/minecraft/loot/LootDataType$Validator;
-
-
Constructor Details
-
LootDataType
private LootDataType(com.mojang.serialization.Codec<T> codec, String id, LootDataType.Validator<T> validator) - Mappings:
Namespace Name Mixin selector official <init>
Lehb;<init>(Lcom/mojang/serialization/Codec;Ljava/lang/String;Lehb$a;)V
intermediary <init>
Lnet/minecraft/class_8490;<init>(Lcom/mojang/serialization/Codec;Ljava/lang/String;Lnet/minecraft/class_8490$class_8491;)V
named <init>
Lnet/minecraft/loot/LootDataType;<init>(Lcom/mojang/serialization/Codec;Ljava/lang/String;Lnet/minecraft/loot/LootDataType$Validator;)V
-
-
Method Details
-
getId
- Mappings:
Namespace Name Mixin selector official a
Lehb;a()Ljava/lang/String;
intermediary method_51214
Lnet/minecraft/class_8490;method_51214()Ljava/lang/String;
named getId
Lnet/minecraft/loot/LootDataType;getId()Ljava/lang/String;
-
validate
- Mappings:
Namespace Name Mixin selector official a
Lehb;a(Lehf;Legy;Ljava/lang/Object;)V
intermediary method_51209
Lnet/minecraft/class_8490;method_51209(Lnet/minecraft/class_58;Lnet/minecraft/class_8488;Ljava/lang/Object;)V
named validate
Lnet/minecraft/loot/LootDataType;validate(Lnet/minecraft/loot/LootTableReporter;Lnet/minecraft/loot/LootDataKey;Ljava/lang/Object;)V
-
parse
- Mappings:
Namespace Name Mixin selector official a
Lehb;a(Lahg;Lcom/google/gson/JsonElement;)Ljava/util/Optional;
intermediary method_51204
Lnet/minecraft/class_8490;method_51204(Lnet/minecraft/class_2960;Lcom/google/gson/JsonElement;)Ljava/util/Optional;
named parse
Lnet/minecraft/loot/LootDataType;parse(Lnet/minecraft/util/Identifier;Lcom/google/gson/JsonElement;)Ljava/util/Optional;
-
stream
- Mappings:
Namespace Name Mixin selector official b
Lehb;b()Ljava/util/stream/Stream;
intermediary method_51215
Lnet/minecraft/class_8490;method_51215()Ljava/util/stream/Stream;
named stream
Lnet/minecraft/loot/LootDataType;stream()Ljava/util/stream/Stream;
-
validator
- Mappings:
Namespace Name Mixin selector official c
Lehb;c()Lehb$a;
intermediary method_51216
Lnet/minecraft/class_8490;method_51216()Lnet/minecraft/class_8490$class_8491;
named validator
Lnet/minecraft/loot/LootDataType;validator()Lnet/minecraft/loot/LootDataType$Validator;
-
tableValidator
- Mappings:
Namespace Name Mixin selector official d
Lehb;d()Lehb$a;
intermediary method_51217
Lnet/minecraft/class_8490;method_51217()Lnet/minecraft/class_8490$class_8491;
named tableValidator
Lnet/minecraft/loot/LootDataType;tableValidator()Lnet/minecraft/loot/LootDataType$Validator;
-