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 Summary
Modifier and TypeFieldDescriptionprivate final Optional<LootContextPredicate>
The field for thechild
record component.static final com.mojang.serialization.Codec<BredAnimalsCriterion.Conditions>
private final Optional<LootContextPredicate>
The field for theparent
record component.private final Optional<LootContextPredicate>
The field for thepartner
record component.private final Optional<LootContextPredicate>
The field for theplayer
record component. -
Constructor Summary
ConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> parentPredicate, Optional<LootContextPredicate> partnerPredicate, Optional<LootContextPredicate> childPredicate) -
Method Summary
Modifier and TypeMethodDescriptionany()
child()
Returns the value of thechild
record component.create
(Optional<EntityPredicate> parent, Optional<EntityPredicate> partner, Optional<EntityPredicate> child) create
(EntityPredicate.Builder child) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
matches
(LootContext parentContext, LootContext partnerContext, @Nullable LootContext childContext) parent()
Returns the value of theparent
record component.private static boolean
parentMatches
(Optional<LootContextPredicate> parent, LootContext parentContext) partner()
Returns the value of thepartner
record component.player()
final String
toString()
Returns a string representation of this record class.void
validate
(LootContextPredicateValidator validator)
-
Field Details
-
player
The field for theplayer
record component. -
parent
The field for theparent
record component. -
partner
The field for thepartner
record component. -
child
The field for thechild
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lav$a;a:Lcom/mojang/serialization/Codec;
intermediary field_47228
Lnet/minecraft/class_196$class_198;field_47228:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/advancement/criterion/BredAnimalsCriterion$Conditions;CODEC:Lcom/mojang/serialization/Codec;
-
-
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
public static AdvancementCriterion<BredAnimalsCriterion.Conditions> create(EntityPredicate.Builder child) - 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
public static AdvancementCriterion<BredAnimalsCriterion.Conditions> create(Optional<EntityPredicate> parent, Optional<EntityPredicate> partner, Optional<EntityPredicate> child) - 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
- Specified by:
validate
in interfaceAbstractCriterion.Conditions
- Specified by:
validate
in interfaceCriterionConditions
- 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
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
player
- Specified by:
player
in interfaceAbstractCriterion.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
Returns the value of theparent
record component.- Returns:
- the value of the
parent
record component
-
partner
Returns the value of thepartner
record component.- Returns:
- the value of the
partner
record component
-
child
Returns the value of thechild
record component.- Returns:
- the value of the
child
record component
-