Package net.minecraft.loot
Class LootDataType<T>
java.lang.Object
net.minecraft.loot.LootDataType<T>
- Mappings:
Namespace Name official ecv
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, com.google.gson.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
Lecv;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
Lecv;a:Lecv;
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
Lecv;b:Lecv;
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
Lecv;c:Lecv;
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
Lecv;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
Lecv;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
Lecv;g:Lecv$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>
Lecv;<init>(Lcom/mojang/serialization/Codec;Ljava/lang/String;Lecv$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
Lecv;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
Lecv;a(Lecz;Lecs;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
Lecv;a(Laew;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
Lecv;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
Lecv;c()Lecv$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
Lecv;d()Lecv$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;
-