Class LevitationCriterion.Conditions

java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.LevitationCriterion.Conditions
All Implemented Interfaces:
CriterionConditions
Enclosing class:
LevitationCriterion

public static class LevitationCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official cd$a
intermediary net/minecraft/class_2085$class_2087
named net/minecraft/advancement/criterion/LevitationCriterion$Conditions
  • Field Details

    • distance

      private final DistancePredicate distance
      Mappings:
      Namespace Name Mixin selector
      official a Lcd$a;a:Lbf;
      intermediary field_9675 Lnet/minecraft/class_2085$class_2087;field_9675:Lnet/minecraft/class_2025;
      named distance Lnet/minecraft/advancement/criterion/LevitationCriterion$Conditions;distance:Lnet/minecraft/predicate/entity/DistancePredicate;
    • duration

      private final NumberRange.IntRange duration
      Mappings:
      Namespace Name Mixin selector
      official b Lcd$a;b:Lcj$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(EntityPredicate.Extended player, DistancePredicate distance, NumberRange.IntRange duration)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcd$a;<init>(Lbo$b;Lbf;Lcj$d;)V
      intermediary <init> Lnet/minecraft/class_2085$class_2087;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2025;Lnet/minecraft/class_2096$class_2100;)V
      named <init> Lnet/minecraft/advancement/criterion/LevitationCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/entity/DistancePredicate;Lnet/minecraft/predicate/NumberRange$IntRange;)V
  • Method Details

    • create

      public static LevitationCriterion.Conditions create(DistancePredicate distance)
      Mappings:
      Namespace Name Mixin selector
      official a Lcd$a;a(Lbf;)Lcd$a;
      intermediary method_9013 Lnet/minecraft/class_2085$class_2087;method_9013(Lnet/minecraft/class_2025;)Lnet/minecraft/class_2085$class_2087;
      named create Lnet/minecraft/advancement/criterion/LevitationCriterion$Conditions;create(Lnet/minecraft/predicate/entity/DistancePredicate;)Lnet/minecraft/advancement/criterion/LevitationCriterion$Conditions;
    • matches

      public boolean matches(ServerPlayerEntity player, Vec3d startPos, int duration)
      Mappings:
      Namespace Name Mixin selector
      official a Lcd$a;a(Lafp;Ldvt;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 JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lan;a(Lct;)Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson(Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonObject;