Class AlternativeLootCondition

java.lang.Object
net.minecraft.loot.condition.AlternativeLootCondition
All Implemented Interfaces:
Predicate<LootContext>, LootCondition, LootContextAware
Direct Known Subclasses:
AllOfLootCondition, AnyOfLootCondition

public abstract class AlternativeLootCondition extends Object implements LootCondition
Mappings:
Namespace Name
official eby
intermediary net/minecraft/class_186
named net/minecraft/loot/condition/AlternativeLootCondition
  • Field Details

    • terms

      final LootCondition[] terms
      Mappings:
      Namespace Name Mixin selector
      official a Leby;a:[Lech;
      intermediary field_1246 Lnet/minecraft/class_186;field_1246:[Lnet/minecraft/class_5341;
      named terms Lnet/minecraft/loot/condition/AlternativeLootCondition;terms:[Lnet/minecraft/loot/condition/LootCondition;
    • predicate

      private final Predicate<LootContext> predicate
      Mappings:
      Namespace Name Mixin selector
      official b Leby;b:Ljava/util/function/Predicate;
      intermediary field_1247 Lnet/minecraft/class_186;field_1247:Ljava/util/function/Predicate;
      named predicate Lnet/minecraft/loot/condition/AlternativeLootCondition;predicate:Ljava/util/function/Predicate;
  • Constructor Details

    • AlternativeLootCondition

      protected AlternativeLootCondition(LootCondition[] terms, Predicate<LootContext> predicate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leby;<init>([Lech;Ljava/util/function/Predicate;)V
      intermediary <init> Lnet/minecraft/class_186;<init>([Lnet/minecraft/class_5341;Ljava/util/function/Predicate;)V
      named <init> Lnet/minecraft/loot/condition/AlternativeLootCondition;<init>([Lnet/minecraft/loot/condition/LootCondition;Ljava/util/function/Predicate;)V
  • Method Details

    • test

      public final boolean test(LootContext lootContext)
      Specified by:
      test in interface Predicate<LootContext>
      Mappings:
      Namespace Name Mixin selector
      official a Leby;a(Ldzh;)Z
      intermediary method_825 Lnet/minecraft/class_186;method_825(Lnet/minecraft/class_47;)Z
      named test Lnet/minecraft/loot/condition/AlternativeLootCondition;test(Lnet/minecraft/loot/context/LootContext;)Z
    • validate

      public void validate(LootTableReporter reporter)
      Specified by:
      validate in interface LootContextAware
      Mappings:
      Namespace Name Mixin selector
      official a Ldzi;a(Ldzs;)V
      intermediary method_292 Lnet/minecraft/class_46;method_292(Lnet/minecraft/class_58;)V
      named validate Lnet/minecraft/loot/context/LootContextAware;validate(Lnet/minecraft/loot/LootTableReporter;)V