Class LootDataType<T>

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

public class LootDataType<T> extends Object
Mappings:
Namespace Name
official ecv
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 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

      public static final LootDataType<LootCondition> 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

      public static final LootDataType<LootFunction> 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

      public static final LootDataType<LootTable> 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

      private final com.mojang.serialization.Codec<T> 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

      private final String 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

      private final LootDataType.Validator<T> 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

      public String 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

      public void validate(LootTableReporter reporter, LootDataKey<T> key, T value)
      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

      public Optional<T> parse(Identifier id, com.google.gson.JsonElement json)
      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

      public static Stream<LootDataType<?>> 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

      private static <T extends LootContextAware> LootDataType.Validator<T> 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

      private static LootDataType.Validator<LootTable> 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;