Record Class BredAnimalsCriterion.Conditions

java.lang.Object
java.lang.Record
net.minecraft.advancement.criterion.BredAnimalsCriterion.Conditions
Record Components:
player -
parent -
partner -
child -
All Implemented Interfaces:
AbstractCriterion.Conditions, CriterionConditions
Enclosing class:
BredAnimalsCriterion

public static record BredAnimalsCriterion.Conditions(Optional<LootContextPredicate> player, Optional<LootContextPredicate> parent, Optional<LootContextPredicate> partner, Optional<LootContextPredicate> child) extends Record implements AbstractCriterion.Conditions
Mappings:
Namespace Name
named net/minecraft/advancement/criterion/BredAnimalsCriterion$Conditions
intermediary net/minecraft/class_196$class_198
official ay$a
named player
intermediary comp_2029
official b
named parent
intermediary comp_2033
official c
named partner
intermediary comp_2034
official d
named child
intermediary comp_2035
official e
  • Field Details

  • Constructor Details

    • Conditions

      public Conditions(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> parentPredicate, Optional<LootContextPredicate> partnerPredicate, Optional<LootContextPredicate> childPredicate)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/advancement/criterion/BredAnimalsCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_196$class_198;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      official <init> Lay$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • any

      Mappings:
      Namespace Name Mixin selector
      named any Lnet/minecraft/advancement/criterion/BredAnimalsCriterion$Conditions;any()Lnet/minecraft/advancement/AdvancementCriterion;
      intermediary method_860 Lnet/minecraft/class_196$class_198;method_860()Lnet/minecraft/class_175;
      official b Lay$a;b()Lap;
    • create

      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/advancement/criterion/BredAnimalsCriterion$Conditions;create(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
      intermediary method_861 Lnet/minecraft/class_196$class_198;method_861(Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_175;
      official a Lay$a;a(Lbw$a;)Lap;
    • create

      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/advancement/criterion/BredAnimalsCriterion$Conditions;create(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
      intermediary method_29918 Lnet/minecraft/class_196$class_198;method_29918(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_175;
      official a Lay$a;a(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lap;
    • matches

      public boolean matches(LootContext parentContext, LootContext partnerContext, @Nullable @Nullable LootContext childContext)
      Mappings:
      Namespace Name Mixin selector
      named matches Lnet/minecraft/advancement/criterion/BredAnimalsCriterion$Conditions;matches(Lnet/minecraft/loot/context/LootContext;Lnet/minecraft/loot/context/LootContext;Lnet/minecraft/loot/context/LootContext;)Z
      intermediary method_862 Lnet/minecraft/class_196$class_198;method_862(Lnet/minecraft/class_47;Lnet/minecraft/class_47;Lnet/minecraft/class_47;)Z
      official a Lay$a;a(Lewo;Lewo;Lewo;)Z
    • parentMatches

      private static boolean parentMatches(Optional<LootContextPredicate> parent, LootContext parentContext)
      Mappings:
      Namespace Name Mixin selector
      named parentMatches Lnet/minecraft/advancement/criterion/BredAnimalsCriterion$Conditions;parentMatches(Ljava/util/Optional;Lnet/minecraft/loot/context/LootContext;)Z
      intermediary method_53075 Lnet/minecraft/class_196$class_198;method_53075(Ljava/util/Optional;Lnet/minecraft/class_47;)Z
      official a Lay$a;a(Ljava/util/Optional;Lewo;)Z
    • validate

      public void validate(LootContextPredicateValidator validator)
      Specified by:
      validate in interface AbstractCriterion.Conditions
      Specified by:
      validate in interface CriterionConditions
      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/advancement/criterion/CriterionConditions;validate(Lnet/minecraft/predicate/entity/LootContextPredicateValidator;)V
      intermediary method_54938 Lnet/minecraft/class_184;method_54938(Lnet/minecraft/class_8944;)V
      official a Las;a(Lbi;)V
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • player

      public Optional<LootContextPredicate> player()
      Returns the value of the player record component.
      Specified by:
      player in interface AbstractCriterion.Conditions
      Returns:
      the value of the player record component
    • parent

      public Optional<LootContextPredicate> parent()
      Returns the value of the parent record component.
      Returns:
      the value of the parent record component
    • partner

      public Optional<LootContextPredicate> partner()
      Returns the value of the partner record component.
      Returns:
      the value of the partner record component
    • child

      public Optional<LootContextPredicate> child()
      Returns the value of the child record component.
      Returns:
      the value of the child record component