Uses of Record Class
net.minecraft.predicate.entity.DistancePredicate
-
Uses of DistancePredicate in net.minecraft.advancement.criterion
Modifier and TypeFieldDescriptionprivate final Optional<DistancePredicate>
LevitationCriterion.Conditions.distance
The field for thedistance
record component.private final Optional<DistancePredicate>
TravelCriterion.Conditions.distance
The field for thedistance
record component.Modifier and TypeMethodDescriptionLevitationCriterion.Conditions.distance()
Returns the value of thedistance
record component.TravelCriterion.Conditions.distance()
Returns the value of thedistance
record component.Modifier and TypeMethodDescriptionLevitationCriterion.Conditions.create
(DistancePredicate distance) TravelCriterion.Conditions.fallFromHeight
(EntityPredicate.Builder entity, DistancePredicate distance, LocationPredicate.Builder startPos) TravelCriterion.Conditions.netherTravel
(DistancePredicate distance) TravelCriterion.Conditions.rideEntityInLava
(EntityPredicate.Builder entity, DistancePredicate distance) -
Uses of DistancePredicate in net.minecraft.predicate.entity
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DistancePredicate>
DistancePredicate.CODEC
private Optional<DistancePredicate>
EntityPredicate.Builder.distance
private final Optional<DistancePredicate>
EntityPredicate.distance
The field for thedistance
record component.Modifier and TypeMethodDescriptionstatic DistancePredicate
DistancePredicate.absolute
(NumberRange.DoubleRange absolute) static DistancePredicate
DistancePredicate.horizontal
(NumberRange.DoubleRange horizontal) static DistancePredicate
DistancePredicate.y
(NumberRange.DoubleRange y) Modifier and TypeMethodDescriptionEntityPredicate.distance()
Returns the value of thedistance
record component.