Class TravelCriterion.Conditions

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

public static class TravelCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official bg$a
intermediary net/minecraft/class_2108$class_2110
named net/minecraft/advancement/criterion/TravelCriterion$Conditions
  • Field Details

    • startPos

      private final LocationPredicate startPos
      Mappings:
      Namespace Name Mixin selector
      official a Lbg$a;a:Lch;
      intermediary field_35040 Lnet/minecraft/class_2108$class_2110;field_35040:Lnet/minecraft/class_2090;
      named startPos Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;startPos:Lnet/minecraft/predicate/entity/LocationPredicate;
    • distance

      private final DistancePredicate distance
      Mappings:
      Namespace Name Mixin selector
      official b Lbg$a;b:Lbf;
      intermediary field_9723 Lnet/minecraft/class_2108$class_2110;field_9723:Lnet/minecraft/class_2025;
      named distance Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;distance:Lnet/minecraft/predicate/entity/DistancePredicate;
  • Constructor Details

    • Conditions

      public Conditions(Identifier id, EntityPredicate.Extended entity, LocationPredicate startPos, DistancePredicate distance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbg$a;<init>(Laaj;Lbo$b;Lch;Lbf;)V
      intermediary <init> Lnet/minecraft/class_2108$class_2110;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2090;Lnet/minecraft/class_2025;)V
      named <init> Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/entity/LocationPredicate;Lnet/minecraft/predicate/entity/DistancePredicate;)V
  • Method Details

    • fallFromHeight

      public static TravelCriterion.Conditions fallFromHeight(EntityPredicate.Builder entity, DistancePredicate distance, LocationPredicate startPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbg$a;a(Lbo$a;Lbf;Lch;)Lbg$a;
      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;)Lnet/minecraft/class_2108$class_2110;
      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;)Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;
    • rideEntityInLava

      public static TravelCriterion.Conditions rideEntityInLava(EntityPredicate.Builder entity, DistancePredicate distance)
      Mappings:
      Namespace Name Mixin selector
      official a Lbg$a;a(Lbo$a;Lbf;)Lbg$a;
      intermediary method_38850 Lnet/minecraft/class_2108$class_2110;method_38850(Lnet/minecraft/class_2048$class_2049;Lnet/minecraft/class_2025;)Lnet/minecraft/class_2108$class_2110;
      named rideEntityInLava Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;rideEntityInLava(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;Lnet/minecraft/predicate/entity/DistancePredicate;)Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;
    • netherTravel

      public static TravelCriterion.Conditions netherTravel(DistancePredicate distance)
      Mappings:
      Namespace Name Mixin selector
      official a Lbg$a;a(Lbf;)Lbg$a;
      intermediary method_9085 Lnet/minecraft/class_2108$class_2110;method_9085(Lnet/minecraft/class_2025;)Lnet/minecraft/class_2108$class_2110;
      named netherTravel Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;netherTravel(Lnet/minecraft/predicate/entity/DistancePredicate;)Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;
    • 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;
    • matches

      public boolean matches(ServerWorld world, Vec3d startPos, Vec3d endPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbg$a;a(Lafo;Ldvs;Ldvs;)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