Class LootDataType<T>

java.lang.Object
net.minecraft.loot.LootDataType<T>

public class LootDataType<T> extends Object
Mappings:
Namespace Name
official dzh
intermediary net/minecraft/class_8490
named net/minecraft/loot/LootDataType
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official d Ldzh;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

      public static final LootDataType<LootCondition> PREDICATES
      Mappings:
      Namespace Name Mixin selector
      official a Ldzh;a:Ldzh;
      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

      public static final LootDataType<LootFunction> ITEM_MODIFIERS
      Mappings:
      Namespace Name Mixin selector
      official b Ldzh;b:Ldzh;
      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

      public static final LootDataType<LootTable> LOOT_TABLES
      Mappings:
      Namespace Name Mixin selector
      official c Ldzh;c:Ldzh;
      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

      private final Gson gson
      Mappings:
      Namespace Name Mixin selector
      official e Ldzh;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

      private final BiFunction<Identifier,JsonElement,Optional<T>> parser
      Mappings:
      Namespace Name Mixin selector
      official f Ldzh;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

      private final String id
      Mappings:
      Namespace Name Mixin selector
      official g Ldzh;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

      private final LootDataType.Validator<T> validator
      Mappings:
      Namespace Name Mixin selector
      official h Ldzh;h:Ldzh$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> Ldzh;<init>(Lcom/google/gson/Gson;Ljava/util/function/BiFunction;Ljava/lang/String;Ldzh$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

      public Gson getGson()
      Mappings:
      Namespace Name Mixin selector
      official a Ldzh;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

      public String getId()
      Mappings:
      Namespace Name Mixin selector
      official b Ldzh;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

      public void validate(LootTableReporter reporter, LootDataKey<T> key, T value)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzh;a(Ldzm;Ldze;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

      public Optional<T> parse(Identifier id, JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzh;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

      public static Stream<LootDataType<?>> stream()
      Mappings:
      Namespace Name Mixin selector
      official c Ldzh;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,BiFunction<Identifier,JsonElement,Optional<T>>> parserFactory(Class<T> clazz)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzh;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,BiFunction<Identifier,JsonElement,Optional<T>>> parserFactory(Class<T> clazz, Function<T[],T> combiner)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzh;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

      private static <T extends LootContextAware> LootDataType.Validator<T> validator()
      Mappings:
      Namespace Name Mixin selector
      official d Ldzh;d()Ldzh$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

      private static LootDataType.Validator<LootTable> tableValidator()
      Mappings:
      Namespace Name Mixin selector
      official e Ldzh;e()Ldzh$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;