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
official av$a
intermediary net/minecraft/class_196$class_198
named net/minecraft/advancement/criterion/BredAnimalsCriterion$Conditions
official b
intermediary comp_2029
named player
official c
intermediary comp_2033
named parent
official d
intermediary comp_2034
named partner
official e
intermediary comp_2035
named child
  • Field Details

  • Constructor Details

    • Conditions

      public Conditions(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> parentPredicate, Optional<LootContextPredicate> partnerPredicate, Optional<LootContextPredicate> childPredicate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lav$a;<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
      named <init> Lnet/minecraft/advancement/criterion/BredAnimalsCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • any

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

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

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

      public boolean matches(LootContext parentContext, LootContext partnerContext, @Nullable @Nullable LootContext childContext)
      Mappings:
      Namespace Name Mixin selector
      official a Lav$a;a(Legw;Legw;Legw;)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
      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
    • parentMatches

      private static boolean parentMatches(Optional<LootContextPredicate> parent, LootContext parentContext)
      Mappings:
      Namespace Name Mixin selector
      official a Lav$a;a(Ljava/util/Optional;Legw;)Z
      intermediary method_53075 Lnet/minecraft/class_196$class_198;method_53075(Ljava/util/Optional;Lnet/minecraft/class_47;)Z
      named parentMatches Lnet/minecraft/advancement/criterion/BredAnimalsCriterion$Conditions;parentMatches(Ljava/util/Optional;Lnet/minecraft/loot/context/LootContext;)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
      official a Laq;a(Lbc;)V
      intermediary method_54938 Lnet/minecraft/class_184;method_54938(Lnet/minecraft/class_8944;)V
      named validate Lnet/minecraft/advancement/criterion/CriterionConditions;validate(Lnet/minecraft/predicate/entity/LootContextPredicateValidator;)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()
      Specified by:
      player in interface AbstractCriterion.Conditions
      Mappings:
      Namespace Name Mixin selector
      official a Lcv$a;a()Ljava/util/Optional;
      intermediary comp_2029 Lnet/minecraft/class_4558$class_8788;comp_2029()Ljava/util/Optional;
      named player Lnet/minecraft/advancement/criterion/AbstractCriterion$Conditions;player()Ljava/util/Optional;
    • 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