Class TravelCriterion

All Implemented Interfaces:
Criterion<TravelCriterion.Conditions>

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

    • id

      final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official a Lbg;a:Lacq;
      intermediary field_9717 Lnet/minecraft/class_2108;field_9717:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/advancement/criterion/TravelCriterion;id:Lnet/minecraft/util/Identifier;
  • Constructor Details

    • TravelCriterion

      public TravelCriterion(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbg;<init>(Lacq;)V
      intermediary <init> Lnet/minecraft/class_2108;<init>(Lnet/minecraft/class_2960;)V
      named <init> Lnet/minecraft/advancement/criterion/TravelCriterion;<init>(Lnet/minecraft/util/Identifier;)V
  • Method Details

    • getId

      public Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      official a Lal;a()Lacq;
      intermediary method_794 Lnet/minecraft/class_179;method_794()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/advancement/criterion/Criterion;getId()Lnet/minecraft/util/Identifier;
    • conditionsFromJson

      public TravelCriterion.Conditions conditionsFromJson(JsonObject jsonObject, LootContextPredicate lootContextPredicate, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
      Specified by:
      conditionsFromJson in class AbstractCriterion<TravelCriterion.Conditions>
      Mappings:
      Namespace Name Mixin selector
      official a Lbg;a(Lcom/google/gson/JsonObject;Lba;Lbe;)Lbg$a;
      intermediary method_9078 Lnet/minecraft/class_2108;method_9078(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5258;Lnet/minecraft/class_5257;)Lnet/minecraft/class_2108$class_2110;
      named conditionsFromJson Lnet/minecraft/advancement/criterion/TravelCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/LootContextPredicate;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 Lbg;a(Laig;Leea;)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