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 - named - net/minecraft/advancement/criterion/FallAfterExplosionCriterion$Conditions- intermediary - net/minecraft/class_9421$class_9422- official - cb$a- named - player- intermediary - comp_2029- official - b- named - startPosition- intermediary - comp_2488- official - c- named - distance- intermediary - comp_2489- official - d- named - cause- intermediary - comp_2490- official - e
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionConditions(Optional<LootContextPredicate> optional, Optional<LocationPredicate> optional2, Optional<DistancePredicate> optional3, Optional<LootContextPredicate> optional4) 
- 
Method SummaryModifier 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 theplayerrecord component.Returns the value of thestartPositionrecord component.final StringtoString()Returns a string representation of this record class.voidvalidate(LootContextPredicateValidator validator) 
- 
Field Details- 
playerThe field for theplayerrecord component.
- 
startPositionThe field for thestartPositionrecord component.
- 
distanceThe field for thedistancerecord component.
- 
causeThe field for thecauserecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/advancement/criterion/FallAfterExplosionCriterion$Conditions;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_49978- Lnet/minecraft/class_9421$class_9422;field_49978:Lcom/mojang/serialization/Codec;- official - a- Lcb$a;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
Conditionspublic Conditions(Optional<LootContextPredicate> optional, Optional<LocationPredicate> optional2, Optional<DistancePredicate> optional3, Optional<LootContextPredicate> optional4) 
 
- 
- 
Method Details- 
createpublic static AdvancementCriterion<FallAfterExplosionCriterion.Conditions> create(DistancePredicate distance, EntityPredicate.Builder cause) - Mappings:
- Namespace - Name - Mixin selector - named - create- Lnet/minecraft/advancement/criterion/FallAfterExplosionCriterion$Conditions;create(Lnet/minecraft/predicate/entity/DistancePredicate;Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;- intermediary - method_58361- Lnet/minecraft/class_9421$class_9422;method_58361(Lnet/minecraft/class_2025;Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_175;- official - a- Lcb$a;a(Lbo;Lbx$a;)Laq;
 
- 
validate- Specified by:
- validatein interface- AbstractCriterion.Conditions
- Specified by:
- validatein 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- Lat;a(Lbj;)V
 
- 
matchespublic boolean matches(ServerWorld world, Vec3d startPosition, Vec3d endPosition, @Nullable @Nullable LootContext cause) - Mappings:
- Namespace - Name - Mixin selector - named - matches- Lnet/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- intermediary - method_58360- Lnet/minecraft/class_9421$class_9422;method_58360(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_47;)Z- official - a- Lcb$a;a(Lard;Lfbb;Lfbb;Levs;)Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
playerReturns the value of theplayerrecord component.- Specified by:
- playerin interface- AbstractCriterion.Conditions
- Returns:
- the value of the playerrecord component
 
- 
startPositionReturns the value of thestartPositionrecord component.- Returns:
- the value of the startPositionrecord component
 
- 
distanceReturns the value of thedistancerecord component.- Returns:
- the value of the distancerecord component
 
- 
causeReturns the value of thecauserecord component.- Returns:
- the value of the causerecord component
 
 
-