Record Class FallAfterExplosionCriterion.Conditions
java.lang.Object
java.lang.Record
net.minecraft.advancement.criterion.FallAfterExplosionCriterion.Conditions
- Record Components:
player-startPosition-distance-cause-
- All Implemented Interfaces:
AbstractCriterion.Conditions,CriterionConditions
- Enclosing class:
FallAfterExplosionCriterion
public static record FallAfterExplosionCriterion.Conditions(Optional<LootContextPredicate> player, Optional<LocationPredicate> startPosition, Optional<DistancePredicate> distance, Optional<LootContextPredicate> cause)
extends Record
implements AbstractCriterion.Conditions
- Mappings:
Namespace Name official bv$aintermediary net/minecraft/class_9421$class_9422named net/minecraft/advancement/criterion/FallAfterExplosionCriterion$Conditionsofficial bintermediary comp_2029named playerofficial cintermediary comp_2488named startPositionofficial dintermediary comp_2489named distanceofficial eintermediary comp_2490named cause
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<LootContextPredicate> The field for thecauserecord component.static final com.mojang.serialization.Codec<FallAfterExplosionCriterion.Conditions> private final Optional<DistancePredicate> The field for thedistancerecord component.private final Optional<LootContextPredicate> The field for theplayerrecord component.private final Optional<LocationPredicate> The field for thestartPositionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConditions(Optional<LootContextPredicate> optional, Optional<LocationPredicate> optional2, Optional<DistancePredicate> optional3, Optional<LootContextPredicate> optional4) -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the value of thecauserecord component.create(DistancePredicate distance, EntityPredicate.Builder cause) distance()Returns the value of thedistancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmatches(ServerWorld world, Vec3d startPosition, Vec3d endPosition, @Nullable LootContext cause) player()Returns the value of thestartPositionrecord component.final StringtoString()Returns a string representation of this record class.voidvalidate(LootContextPredicateValidator validator)
-
Field Details
-
player
The field for theplayerrecord component. -
startPosition
The field for thestartPositionrecord component. -
distance
The field for thedistancerecord component. -
cause
The field for thecauserecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLbv$a;a:Lcom/mojang/serialization/Codec;intermediary field_49978Lnet/minecraft/class_9421$class_9422;field_49978:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/advancement/criterion/FallAfterExplosionCriterion$Conditions;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Conditions
public Conditions(Optional<LootContextPredicate> optional, Optional<LocationPredicate> optional2, Optional<DistancePredicate> optional3, Optional<LootContextPredicate> optional4)
-
-
Method Details
-
create
public static AdvancementCriterion<FallAfterExplosionCriterion.Conditions> create(DistancePredicate distance, EntityPredicate.Builder cause) - Mappings:
Namespace Name Mixin selector official aLbv$a;a(Lbi;Lbr$a;)Lan;intermediary method_58361Lnet/minecraft/class_9421$class_9422;method_58361(Lnet/minecraft/class_2025;Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_175;named createLnet/minecraft/advancement/criterion/FallAfterExplosionCriterion$Conditions;create(Lnet/minecraft/predicate/entity/DistancePredicate;Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
-
validate
- Specified by:
validatein interfaceAbstractCriterion.Conditions- Specified by:
validatein interfaceCriterionConditions- Mappings:
Namespace Name Mixin selector official aLaq;a(Lbd;)Vintermediary method_54938Lnet/minecraft/class_184;method_54938(Lnet/minecraft/class_8944;)Vnamed validateLnet/minecraft/advancement/criterion/CriterionConditions;validate(Lnet/minecraft/predicate/entity/LootContextPredicateValidator;)V
-
matches
public boolean matches(ServerWorld world, Vec3d startPosition, Vec3d endPosition, @Nullable @Nullable LootContext cause) - Mappings:
Namespace Name Mixin selector official aLbv$a;a(Laqh;Letp;Letp;Leol;)Zintermediary method_58360Lnet/minecraft/class_9421$class_9422;method_58360(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_47;)Znamed matchesLnet/minecraft/advancement/criterion/FallAfterExplosionCriterion$Conditions;matches(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/loot/context/LootContext;)Z
-
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:
playerin interfaceAbstractCriterion.Conditions- Mappings:
Namespace Name Mixin selector official aLde$a;a()Ljava/util/Optional;intermediary comp_2029Lnet/minecraft/class_4558$class_8788;comp_2029()Ljava/util/Optional;named playerLnet/minecraft/advancement/criterion/AbstractCriterion$Conditions;player()Ljava/util/Optional;
-
startPosition
Returns the value of thestartPositionrecord component.- Returns:
- the value of the
startPositionrecord component
-
distance
Returns the value of thedistancerecord component.- Returns:
- the value of the
distancerecord component
-
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-