Class AbstractCriterion<T extends AbstractCriterion.Conditions>

java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterion<T>
All Implemented Interfaces:
Criterion<T>
Direct Known Subclasses:
BeeNestDestroyedCriterion, BredAnimalsCriterion, BrewedPotionCriterion, ChangedDimensionCriterion, ChanneledLightningCriterion, ConstructBeaconCriterion, ConsumeItemCriterion, CuredZombieVillagerCriterion, EffectsChangedCriterion, EnchantedItemCriterion, EnterBlockCriterion, EntityHurtPlayerCriterion, FilledBucketCriterion, FishingRodHookedCriterion, InventoryChangedCriterion, ItemCriterion, ItemDurabilityChangedCriterion, KilledByCrossbowCriterion, LevitationCriterion, LightningStrikeCriterion, OnKilledCriterion, PlayerGeneratesContainerLootCriterion, PlayerHurtEntityCriterion, PlayerInteractedWithEntityCriterion, RecipeCraftedCriterion, RecipeUnlockedCriterion, ShotCrossbowCriterion, SlideDownBlockCriterion, StartedRidingCriterion, SummonedEntityCriterion, TameAnimalCriterion, TargetHitCriterion, ThrownItemPickedUpByEntityCriterion, TickCriterion, TravelCriterion, UsedEnderEyeCriterion, UsedTotemCriterion, UsingItemCriterion, VillagerTradeCriterion

public abstract class AbstractCriterion<T extends AbstractCriterion.Conditions> extends Object implements Criterion<T>
Mappings:
Namespace Name
official cw
intermediary net/minecraft/class_4558
named net/minecraft/advancement/criterion/AbstractCriterion
  • Field Details

  • Constructor Details

    • AbstractCriterion

      public AbstractCriterion()
  • Method Details

    • beginTrackingCondition

      public final void beginTrackingCondition(PlayerAdvancementTracker manager, Criterion.ConditionsContainer<T> conditions)
      Specified by:
      beginTrackingCondition in interface Criterion<T extends AbstractCriterion.Conditions>
      Mappings:
      Namespace Name Mixin selector
      official a Lao;a(Lafe;Lao$a;)V
      intermediary method_792 Lnet/minecraft/class_179;method_792(Lnet/minecraft/class_2985;Lnet/minecraft/class_179$class_180;)V
      named beginTrackingCondition Lnet/minecraft/advancement/criterion/Criterion;beginTrackingCondition(Lnet/minecraft/advancement/PlayerAdvancementTracker;Lnet/minecraft/advancement/criterion/Criterion$ConditionsContainer;)V
    • endTrackingCondition

      public final void endTrackingCondition(PlayerAdvancementTracker manager, Criterion.ConditionsContainer<T> conditions)
      Specified by:
      endTrackingCondition in interface Criterion<T extends AbstractCriterion.Conditions>
      Mappings:
      Namespace Name Mixin selector
      official b Lao;b(Lafe;Lao$a;)V
      intermediary method_793 Lnet/minecraft/class_179;method_793(Lnet/minecraft/class_2985;Lnet/minecraft/class_179$class_180;)V
      named endTrackingCondition Lnet/minecraft/advancement/criterion/Criterion;endTrackingCondition(Lnet/minecraft/advancement/PlayerAdvancementTracker;Lnet/minecraft/advancement/criterion/Criterion$ConditionsContainer;)V
    • endTracking

      public final void endTracking(PlayerAdvancementTracker tracker)
      Specified by:
      endTracking in interface Criterion<T extends AbstractCriterion.Conditions>
      Mappings:
      Namespace Name Mixin selector
      official a Lao;a(Lafe;)V
      intermediary method_791 Lnet/minecraft/class_179;method_791(Lnet/minecraft/class_2985;)V
      named endTracking Lnet/minecraft/advancement/criterion/Criterion;endTracking(Lnet/minecraft/advancement/PlayerAdvancementTracker;)V
    • conditionsFromJson

      protected abstract T conditionsFromJson(com.google.gson.JsonObject obj, Optional<LootContextPredicate> predicate, AdvancementEntityPredicateDeserializer predicateDeserializer)
      Mappings:
      Namespace Name Mixin selector
      official b Lcw;b(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lbg;)Lcw$a;
      intermediary method_27854 Lnet/minecraft/class_4558;method_27854(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/class_5257;)Lnet/minecraft/class_4558$class_8788;
      named conditionsFromJson Lnet/minecraft/advancement/criterion/AbstractCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/criterion/AbstractCriterion$Conditions;
    • conditionsFromJson

      public final T conditionsFromJson(com.google.gson.JsonObject jsonObject, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
      Specified by:
      conditionsFromJson in interface Criterion<T extends AbstractCriterion.Conditions>
      Mappings:
      Namespace Name Mixin selector
      official b Lcw;b(Lcom/google/gson/JsonObject;Lbg;)Lcw$a;
      intermediary method_27853 Lnet/minecraft/class_4558;method_27853(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5257;)Lnet/minecraft/class_4558$class_8788;
      named conditionsFromJson Lnet/minecraft/advancement/criterion/AbstractCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/criterion/AbstractCriterion$Conditions;
    • trigger

      protected void trigger(ServerPlayerEntity player, Predicate<T> predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lcw;a(Lakr;Ljava/util/function/Predicate;)V
      intermediary method_22510 Lnet/minecraft/class_4558;method_22510(Lnet/minecraft/class_3222;Ljava/util/function/Predicate;)V
      named trigger Lnet/minecraft/advancement/criterion/AbstractCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Ljava/util/function/Predicate;)V