Class TravelCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.TravelCriterion.Conditions
- All Implemented Interfaces:
AbstractCriterion.Conditions
,CriterionConditions
- Enclosing class:
TravelCriterion
- Mappings:
Namespace Name official bi$a
intermediary net/minecraft/class_2108$class_2110
named net/minecraft/advancement/criterion/TravelCriterion$Conditions
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<DistancePredicate>
private final Optional<LocationPredicate>
-
Constructor Summary
ConstructorDescriptionConditions
(Optional<LootContextPredicate> optional, Optional<LocationPredicate> playerPredicate, Optional<DistancePredicate> startPos) -
Method Summary
Modifier and TypeMethodDescriptionfallFromHeight
(EntityPredicate.Builder entity, DistancePredicate distance, LocationPredicate.Builder builder) boolean
matches
(ServerWorld world, Vec3d pos, Vec3d endPos) netherTravel
(DistancePredicate distance) rideEntityInLava
(EntityPredicate.Builder entity, DistancePredicate distance) toJson()
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getPlayerPredicate
-
Field Details
-
startPos
- Mappings:
Namespace Name Mixin selector official a
Lbi$a;a:Ljava/util/Optional;
intermediary field_35040
Lnet/minecraft/class_2108$class_2110;field_35040:Ljava/util/Optional;
named startPos
Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;startPos:Ljava/util/Optional;
-
distance
- Mappings:
Namespace Name Mixin selector official b
Lbi$a;b:Ljava/util/Optional;
intermediary field_9723
Lnet/minecraft/class_2108$class_2110;field_9723:Ljava/util/Optional;
named distance
Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;distance:Ljava/util/Optional;
-
-
Constructor Details
-
Conditions
public Conditions(Optional<LootContextPredicate> optional, Optional<LocationPredicate> playerPredicate, Optional<DistancePredicate> startPos) - Mappings:
Namespace Name Mixin selector official <init>
Lbi$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_2108$class_2110;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
named <init>
Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
-
-
Method Details
-
fallFromHeight
public static AdvancementCriterion<TravelCriterion.Conditions> fallFromHeight(EntityPredicate.Builder entity, DistancePredicate distance, LocationPredicate.Builder builder) - Mappings:
Namespace Name Mixin selector official a
Lbi$a;a(Lbq$a;Lbh;Lcj$a;)Lam;
intermediary method_38851
Lnet/minecraft/class_2108$class_2110;method_38851(Lnet/minecraft/class_2048$class_2049;Lnet/minecraft/class_2025;Lnet/minecraft/class_2090$class_2091;)Lnet/minecraft/class_175;
named fallFromHeight
Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;fallFromHeight(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;Lnet/minecraft/predicate/entity/DistancePredicate;Lnet/minecraft/predicate/entity/LocationPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
-
rideEntityInLava
public static AdvancementCriterion<TravelCriterion.Conditions> rideEntityInLava(EntityPredicate.Builder entity, DistancePredicate distance) - Mappings:
Namespace Name Mixin selector official a
Lbi$a;a(Lbq$a;Lbh;)Lam;
intermediary method_38850
Lnet/minecraft/class_2108$class_2110;method_38850(Lnet/minecraft/class_2048$class_2049;Lnet/minecraft/class_2025;)Lnet/minecraft/class_175;
named rideEntityInLava
Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;rideEntityInLava(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;Lnet/minecraft/predicate/entity/DistancePredicate;)Lnet/minecraft/advancement/AdvancementCriterion;
-
netherTravel
public static AdvancementCriterion<TravelCriterion.Conditions> netherTravel(DistancePredicate distance) - Mappings:
Namespace Name Mixin selector official a
Lbi$a;a(Lbh;)Lam;
intermediary method_9085
Lnet/minecraft/class_2108$class_2110;method_9085(Lnet/minecraft/class_2025;)Lnet/minecraft/class_175;
named netherTravel
Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;netherTravel(Lnet/minecraft/predicate/entity/DistancePredicate;)Lnet/minecraft/advancement/AdvancementCriterion;
-
toJson
- Specified by:
toJson
in interfaceCriterionConditions
- Overrides:
toJson
in classAbstractCriterionConditions
- Mappings:
Namespace Name Mixin selector official a
Lap;a()Lcom/google/gson/JsonObject;
intermediary method_807
Lnet/minecraft/class_184;method_807()Lcom/google/gson/JsonObject;
named toJson
Lnet/minecraft/advancement/criterion/CriterionConditions;toJson()Lcom/google/gson/JsonObject;
-
matches
- Mappings:
Namespace Name Mixin selector official a
Lbi$a;a(Lakq;Lehn;Lehn;)Z
intermediary method_9086
Lnet/minecraft/class_2108$class_2110;method_9086(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Z
named matches
Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;matches(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
-