Class TravelCriterion

All Implemented Interfaces:
Criterion<TravelCriterion.Conditions>

public class TravelCriterion extends AbstractCriterion<TravelCriterion.Conditions>
Mappings:
Namespace Name
official bi
intermediary net/minecraft/class_2108
named net/minecraft/advancement/criterion/TravelCriterion
  • Constructor Details

    • TravelCriterion

      public TravelCriterion()
  • Method Details

    • conditionsFromJson

      public TravelCriterion.Conditions conditionsFromJson(com.google.gson.JsonObject jsonObject, Optional<LootContextPredicate> optional, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
      Specified by:
      conditionsFromJson in class AbstractCriterion<TravelCriterion.Conditions>
      Mappings:
      Namespace Name Mixin selector
      official a Lbi;a(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lbg;)Lbi$a;
      intermediary method_9078 Lnet/minecraft/class_2108;method_9078(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/class_5257;)Lnet/minecraft/class_2108$class_2110;
      named conditionsFromJson Lnet/minecraft/advancement/criterion/TravelCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/criterion/TravelCriterion$Conditions;
    • trigger

      public void trigger(ServerPlayerEntity player, Vec3d startPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbi;a(Lakr;Lehn;)V
      intermediary method_9080 Lnet/minecraft/class_2108;method_9080(Lnet/minecraft/class_3222;Lnet/minecraft/class_243;)V
      named trigger Lnet/minecraft/advancement/criterion/TravelCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/math/Vec3d;)V