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

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

    • startPos

      private final Optional<LocationPredicate> 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

      private final Optional<DistancePredicate> 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

      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

      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

      public com.google.gson.JsonObject toJson()
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      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

      public boolean matches(ServerWorld world, Vec3d pos, Vec3d endPos)
      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