Class LootPoolEntry

java.lang.Object
net.minecraft.loot.entry.LootPoolEntry
All Implemented Interfaces:
EntryCombiner
Direct Known Subclasses:
CombinedEntry, LeafEntry

public abstract class LootPoolEntry extends Object implements EntryCombiner
Mappings:
Namespace Name
official ehp
intermediary net/minecraft/class_79
named net/minecraft/loot/entry/LootPoolEntry
  • Field Details

    • conditions

      protected final List<LootCondition> conditions
      Mappings:
      Namespace Name Mixin selector
      official e Lehp;e:Ljava/util/List;
      intermediary field_988 Lnet/minecraft/class_79;field_988:Ljava/util/List;
      named conditions Lnet/minecraft/loot/entry/LootPoolEntry;conditions:Ljava/util/List;
    • conditionPredicate

      private final Predicate<LootContext> conditionPredicate
      Mappings:
      Namespace Name Mixin selector
      official a Lehp;a:Ljava/util/function/Predicate;
      intermediary field_989 Lnet/minecraft/class_79;field_989:Ljava/util/function/Predicate;
      named conditionPredicate Lnet/minecraft/loot/entry/LootPoolEntry;conditionPredicate:Ljava/util/function/Predicate;
  • Constructor Details

    • LootPoolEntry

      protected LootPoolEntry(List<LootCondition> conditions)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lehp;<init>(Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_79;<init>(Ljava/util/List;)V
      named <init> Lnet/minecraft/loot/entry/LootPoolEntry;<init>(Ljava/util/List;)V
  • Method Details

    • addConditionsField

      protected static <T extends LootPoolEntry> com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,List<LootCondition>> addConditionsField(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance)
      Mappings:
      Namespace Name Mixin selector
      official a Lehp;a(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
      intermediary method_53287 Lnet/minecraft/class_79;method_53287(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
      named addConditionsField Lnet/minecraft/loot/entry/LootPoolEntry;addConditionsField(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P1;
    • validate

      public void validate(LootTableReporter reporter)
      Mappings:
      Namespace Name Mixin selector
      official a Lehp;a(Lehf;)V
      intermediary method_415 Lnet/minecraft/class_79;method_415(Lnet/minecraft/class_58;)V
      named validate Lnet/minecraft/loot/entry/LootPoolEntry;validate(Lnet/minecraft/loot/LootTableReporter;)V
    • test

      protected final boolean test(LootContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Lehp;a(Legw;)Z
      intermediary method_414 Lnet/minecraft/class_79;method_414(Lnet/minecraft/class_47;)Z
      named test Lnet/minecraft/loot/entry/LootPoolEntry;test(Lnet/minecraft/loot/context/LootContext;)Z
    • getType

      public abstract LootPoolEntryType getType()
      Mappings:
      Namespace Name Mixin selector
      official a Lehp;a()Lehq;
      intermediary method_29318 Lnet/minecraft/class_79;method_29318()Lnet/minecraft/class_5338;
      named getType Lnet/minecraft/loot/entry/LootPoolEntry;getType()Lnet/minecraft/loot/entry/LootPoolEntryType;