Package net.minecraft.loot
Class LootDataType<T>
java.lang.Object
net.minecraft.loot.LootDataType<T>
- Mappings:
Namespace Name official dzp
intermediary net/minecraft/class_8490
named net/minecraft/loot/LootDataType
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Gson
private final String
static final LootDataType<LootFunction>
private static final Logger
static final LootDataType<LootTable>
private final BiFunction<Identifier,
JsonElement, Optional<T>> static final LootDataType<LootCondition>
private final LootDataType.Validator<T>
-
Constructor Summary
ModifierConstructorDescriptionprivate
LootDataType
(Gson gson, BiFunction<Gson, String, BiFunction<Identifier, JsonElement, Optional<T>>> parserFactory, String id, LootDataType.Validator<T> validator) -
Method Summary
Modifier and TypeMethodDescriptiongetGson()
getId()
parse
(Identifier id, JsonElement json) private static <T> BiFunction<Gson,
String, BiFunction<Identifier, JsonElement, Optional<T>>> parserFactory
(Class<T> clazz) private static <T> BiFunction<Gson,
String, BiFunction<Identifier, JsonElement, Optional<T>>> parserFactory
(Class<T> clazz, Function<T[], T> combiner) 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
Ldzp;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
Ldzp;a:Ldzp;
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
Ldzp;b:Ldzp;
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
Ldzp;c:Ldzp;
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;
-
gson
- Mappings:
Namespace Name Mixin selector official e
Ldzp;e:Lcom/google/gson/Gson;
intermediary field_44500
Lnet/minecraft/class_8490;field_44500:Lcom/google/gson/Gson;
named gson
Lnet/minecraft/loot/LootDataType;gson:Lcom/google/gson/Gson;
-
parser
- Mappings:
Namespace Name Mixin selector official f
Ldzp;f:Ljava/util/function/BiFunction;
intermediary field_44501
Lnet/minecraft/class_8490;field_44501:Ljava/util/function/BiFunction;
named parser
Lnet/minecraft/loot/LootDataType;parser:Ljava/util/function/BiFunction;
-
id
- Mappings:
Namespace Name Mixin selector official g
Ldzp;g: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 h
Ldzp;h:Ldzp$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(Gson gson, BiFunction<Gson, String, BiFunction<Identifier, JsonElement, Optional<T>>> parserFactory, String id, LootDataType.Validator<T> validator) - Mappings:
Namespace Name Mixin selector official <init>
Ldzp;<init>(Lcom/google/gson/Gson;Ljava/util/function/BiFunction;Ljava/lang/String;Ldzp$a;)V
intermediary <init>
Lnet/minecraft/class_8490;<init>(Lcom/google/gson/Gson;Ljava/util/function/BiFunction;Ljava/lang/String;Lnet/minecraft/class_8490$class_8491;)V
named <init>
Lnet/minecraft/loot/LootDataType;<init>(Lcom/google/gson/Gson;Ljava/util/function/BiFunction;Ljava/lang/String;Lnet/minecraft/loot/LootDataType$Validator;)V
-
-
Method Details
-
getGson
- Mappings:
Namespace Name Mixin selector official a
Ldzp;a()Lcom/google/gson/Gson;
intermediary method_51203
Lnet/minecraft/class_8490;method_51203()Lcom/google/gson/Gson;
named getGson
Lnet/minecraft/loot/LootDataType;getGson()Lcom/google/gson/Gson;
-
getId
- Mappings:
Namespace Name Mixin selector official b
Ldzp;b()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
Ldzp;a(Ldzv;Ldzm;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
Ldzp;a(Lacq;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 c
Ldzp;c()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;
-
parserFactory
private static <T> BiFunction<Gson,String, parserFactoryBiFunction<Identifier, JsonElement, Optional<T>>> (Class<T> clazz) - Mappings:
Namespace Name Mixin selector official a
Ldzp;a(Ljava/lang/Class;)Ljava/util/function/BiFunction;
intermediary method_51210
Lnet/minecraft/class_8490;method_51210(Ljava/lang/Class;)Ljava/util/function/BiFunction;
named parserFactory
Lnet/minecraft/loot/LootDataType;parserFactory(Ljava/lang/Class;)Ljava/util/function/BiFunction;
-
parserFactory
private static <T> BiFunction<Gson,String, parserFactoryBiFunction<Identifier, JsonElement, Optional<T>>> (Class<T> clazz, Function<T[], T> combiner) - Mappings:
Namespace Name Mixin selector official a
Ldzp;a(Ljava/lang/Class;Ljava/util/function/Function;)Ljava/util/function/BiFunction;
intermediary method_51212
Lnet/minecraft/class_8490;method_51212(Ljava/lang/Class;Ljava/util/function/Function;)Ljava/util/function/BiFunction;
named parserFactory
Lnet/minecraft/loot/LootDataType;parserFactory(Ljava/lang/Class;Ljava/util/function/Function;)Ljava/util/function/BiFunction;
-
validator
- Mappings:
Namespace Name Mixin selector official d
Ldzp;d()Ldzp$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 e
Ldzp;e()Ldzp$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;
-