Uses of Record Class
net.minecraft.advancements.critereon.DistancePredicate
-
Uses of DistancePredicate in net.minecraft.advancements.critereon
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DistancePredicate>
DistancePredicate.CODEC
private final Optional<DistancePredicate>
DistanceTrigger.TriggerInstance.distance
private final Optional<DistancePredicate>
LevitationTrigger.TriggerInstance.distance
private Optional<DistancePredicate>
EntityPredicate.Builder.distanceToPlayer
private final Optional<DistancePredicate>
EntityPredicate.distanceToPlayer
The field for thedistanceToPlayer
record component.Modifier and TypeMethodDescriptionstatic DistancePredicate
DistancePredicate.absolute
(MinMaxBounds.Doubles p_148841_) static DistancePredicate
DistancePredicate.horizontal
(MinMaxBounds.Doubles p_148837_) static DistancePredicate
DistancePredicate.vertical
(MinMaxBounds.Doubles p_148839_) Modifier and TypeMethodDescriptionEntityPredicate.distanceToPlayer()
Returns the value of thedistanceToPlayer
record component.static Optional<DistancePredicate>
DistancePredicate.fromJson
(com.google.gson.JsonElement p_26265_) Modifier and TypeMethodDescriptionEntityPredicate.Builder.distance
(DistancePredicate p_36639_) DistanceTrigger.TriggerInstance.fallFromHeight
(EntityPredicate.Builder p_186198_, DistancePredicate p_186199_, LocationPredicate.Builder p_299057_) LevitationTrigger.TriggerInstance.levitated
(DistancePredicate p_49145_) DistanceTrigger.TriggerInstance.rideEntityInLava
(EntityPredicate.Builder p_186195_, DistancePredicate p_186196_) DistanceTrigger.TriggerInstance.travelledThroughNether
(DistancePredicate p_186193_)