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 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()
Returns the value of theplayer
record component.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 named CODEC
Lnet/minecraft/advancement/criterion/BredAnimalsCriterion$Conditions;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_47228
Lnet/minecraft/class_196$class_198;field_47228:Lcom/mojang/serialization/Codec;
official a
Lay$a;a: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 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
public static AdvancementCriterion<BredAnimalsCriterion.Conditions> create(EntityPredicate.Builder child) - 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
public static AdvancementCriterion<BredAnimalsCriterion.Conditions> create(Optional<EntityPredicate> parent, Optional<EntityPredicate> partner, Optional<EntityPredicate> child) - 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
- Specified by:
validate
in interfaceAbstractCriterion.Conditions
- Specified by:
validate
in interfaceCriterionConditions
- 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
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
Returns the value of theplayer
record component.- Specified by:
player
in interfaceAbstractCriterion.Conditions
- Returns:
- the value of the
player
record component
-
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
-