Class AbstractCriterionConditions

java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
All Implemented Interfaces:
CriterionConditions
Direct Known Subclasses:
BeeNestDestroyedCriterion.Conditions, BredAnimalsCriterion.Conditions, BrewedPotionCriterion.Conditions, ChangedDimensionCriterion.Conditions, ChanneledLightningCriterion.Conditions, class_6405.class_6406, class_6407.class_6408, class_6409.class_6410, ConstructBeaconCriterion.Conditions, ConsumeItemCriterion.Conditions, CuredZombieVillagerCriterion.Conditions, EffectsChangedCriterion.Conditions, EnchantedItemCriterion.Conditions, EnterBlockCriterion.Conditions, EntityHurtPlayerCriterion.Conditions, FilledBucketCriterion.Conditions, FishingRodHookedCriterion.Conditions, InventoryChangedCriterion.Conditions, ItemDurabilityChangedCriterion.Conditions, ItemUsedOnBlockCriterion.Conditions, KilledByCrossbowCriterion.Conditions, LevitationCriterion.Conditions, LocationArrivalCriterion.Conditions, NetherTravelCriterion.Conditions, OnKilledCriterion.Conditions, PlacedBlockCriterion.Conditions, PlayerGeneratesContainerLootCriterion.Conditions, PlayerHurtEntityCriterion.Conditions, PlayerInteractedWithEntityCriterion.Conditions, RecipeUnlockedCriterion.Conditions, ShotCrossbowCriterion.Conditions, SlideDownBlockCriterion.Conditions, SummonedEntityCriterion.Conditions, TameAnimalCriterion.Conditions, TargetHitCriterion.Conditions, ThrownItemPickedUpByEntityCriterion.Conditions, TickCriterion.Conditions, UsedEnderEyeCriterion.Conditions, UsedTotemCriterion.Conditions, VillagerTradeCriterion.Conditions

public abstract class AbstractCriterionConditions extends Object implements CriterionConditions
Mappings:
Namespace Name
official ar
intermediary net/minecraft/class_195
named net/minecraft/advancement/criterion/AbstractCriterionConditions
  • Field Details

    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official a Lar;a:Lww;
      intermediary field_1270 Lnet/minecraft/class_195;field_1270:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/advancement/criterion/AbstractCriterionConditions;id:Lnet/minecraft/util/Identifier;
    • playerPredicate

      private final EntityPredicate.Extended playerPredicate
      Mappings:
      Namespace Name Mixin selector
      official b Lar;b:Lbm$b;
      intermediary field_24381 Lnet/minecraft/class_195;field_24381:Lnet/minecraft/class_2048$class_5258;
      named playerPredicate Lnet/minecraft/advancement/criterion/AbstractCriterionConditions;playerPredicate:Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
  • Constructor Details

    • AbstractCriterionConditions

      public AbstractCriterionConditions(Identifier id, EntityPredicate.Extended playerPredicate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lar;<init>(Lww;Lbm$b;)V
      intermediary <init> Lnet/minecraft/class_195;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_2048$class_5258;)V
      named <init> Lnet/minecraft/advancement/criterion/AbstractCriterionConditions;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/predicate/entity/EntityPredicate$Extended;)V
  • Method Details

    • getId

      public Identifier getId()
      Specified by:
      getId in interface CriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lam;a()Lww;
      intermediary method_806 Lnet/minecraft/class_184;method_806()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/advancement/criterion/CriterionConditions;getId()Lnet/minecraft/util/Identifier;
    • getPlayerPredicate

      protected EntityPredicate.Extended getPlayerPredicate()
      Mappings:
      Namespace Name Mixin selector
      official b Lar;b()Lbm$b;
      intermediary method_27790 Lnet/minecraft/class_195;method_27790()Lnet/minecraft/class_2048$class_5258;
      named getPlayerPredicate Lnet/minecraft/advancement/criterion/AbstractCriterionConditions;getPlayerPredicate()Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
    • toJson

      public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
      Specified by:
      toJson in interface CriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lam;a(Lcq;)Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson(Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonObject;
    • toString

      public String toString()
      Overrides:
      toString in class Object