Class ChangedDimensionCriterion

All Implemented Interfaces:
Criterion<ChangedDimensionCriterion.Conditions>

public class ChangedDimensionCriterion extends AbstractCriterion<ChangedDimensionCriterion.Conditions>
Mappings:
Namespace Name
official ay
intermediary net/minecraft/class_1999
named net/minecraft/advancement/criterion/ChangedDimensionCriterion
  • Constructor Details

    • ChangedDimensionCriterion

      public ChangedDimensionCriterion()
  • Method Details

    • conditionsFromJson

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

      public void trigger(ServerPlayerEntity player, RegistryKey<World> from, RegistryKey<World> to)
      Mappings:
      Namespace Name Mixin selector
      official a Lay;a(Lakr;Laev;Laev;)V
      intermediary method_8794 Lnet/minecraft/class_1999;method_8794(Lnet/minecraft/class_3222;Lnet/minecraft/class_5321;Lnet/minecraft/class_5321;)V
      named trigger Lnet/minecraft/advancement/criterion/ChangedDimensionCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/registry/RegistryKey;)V