Class LevitationCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.LevitationCriterion.Conditions
- All Implemented Interfaces:
AbstractCriterion.Conditions
,CriterionConditions
- Enclosing class:
LevitationCriterion
- Mappings:
Namespace Name official cf$a
intermediary net/minecraft/class_2085$class_2087
named net/minecraft/advancement/criterion/LevitationCriterion$Conditions
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<DistancePredicate>
private final NumberRange.IntRange
-
Constructor Summary
ConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, Optional<DistancePredicate> distance, NumberRange.IntRange duration) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(DistancePredicate distance) boolean
matches
(ServerPlayerEntity player, Vec3d distance, int duration) com.google.gson.JsonObject
toJson()
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getPlayerPredicate
-
Field Details
-
distance
- Mappings:
Namespace Name Mixin selector official a
Lcf$a;a:Ljava/util/Optional;
intermediary field_9675
Lnet/minecraft/class_2085$class_2087;field_9675:Ljava/util/Optional;
named distance
Lnet/minecraft/advancement/criterion/LevitationCriterion$Conditions;distance:Ljava/util/Optional;
-
duration
- Mappings:
Namespace Name Mixin selector official b
Lcf$a;b:Lcl$d;
intermediary field_9676
Lnet/minecraft/class_2085$class_2087;field_9676:Lnet/minecraft/class_2096$class_2100;
named duration
Lnet/minecraft/advancement/criterion/LevitationCriterion$Conditions;duration:Lnet/minecraft/predicate/NumberRange$IntRange;
-
-
Constructor Details
-
Conditions
public Conditions(Optional<LootContextPredicate> playerPredicate, Optional<DistancePredicate> distance, NumberRange.IntRange duration) - Mappings:
Namespace Name Mixin selector official <init>
Lcf$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Lcl$d;)V
intermediary <init>
Lnet/minecraft/class_2085$class_2087;<init>(Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/class_2096$class_2100;)V
named <init>
Lnet/minecraft/advancement/criterion/LevitationCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/predicate/NumberRange$IntRange;)V
-
-
Method Details
-
create
public static AdvancementCriterion<LevitationCriterion.Conditions> create(DistancePredicate distance) - Mappings:
Namespace Name Mixin selector official a
Lcf$a;a(Lbh;)Lam;
intermediary method_9013
Lnet/minecraft/class_2085$class_2087;method_9013(Lnet/minecraft/class_2025;)Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/LevitationCriterion$Conditions;create(Lnet/minecraft/predicate/entity/DistancePredicate;)Lnet/minecraft/advancement/AdvancementCriterion;
-
matches
- Mappings:
Namespace Name Mixin selector official a
Lcf$a;a(Lakr;Lehn;I)Z
intermediary method_9014
Lnet/minecraft/class_2085$class_2087;method_9014(Lnet/minecraft/class_3222;Lnet/minecraft/class_243;I)Z
named matches
Lnet/minecraft/advancement/criterion/LevitationCriterion$Conditions;matches(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/math/Vec3d;I)Z
-
toJson
public com.google.gson.JsonObject 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;
-