Class AbstractCriterionConditions

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

public abstract class AbstractCriterionConditions extends Object implements AbstractCriterion.Conditions
Mappings:
Namespace Name
official at
intermediary net/minecraft/class_195
named net/minecraft/advancement/criterion/AbstractCriterionConditions
  • Field Details

    • playerPredicate

      private final Optional<LootContextPredicate> playerPredicate
      Mappings:
      Namespace Name Mixin selector
      official a Lat;a:Ljava/util/Optional;
      intermediary field_24381 Lnet/minecraft/class_195;field_24381:Ljava/util/Optional;
      named playerPredicate Lnet/minecraft/advancement/criterion/AbstractCriterionConditions;playerPredicate:Ljava/util/Optional;
  • Constructor Details

    • AbstractCriterionConditions

      public AbstractCriterionConditions(Optional<LootContextPredicate> playerPredicate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lat;<init>(Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_195;<init>(Ljava/util/Optional;)V
      named <init> Lnet/minecraft/advancement/criterion/AbstractCriterionConditions;<init>(Ljava/util/Optional;)V
  • Method Details

    • getPlayerPredicate

      public Optional<LootContextPredicate> getPlayerPredicate()
      Specified by:
      getPlayerPredicate in interface AbstractCriterion.Conditions
      Mappings:
      Namespace Name Mixin selector
      official b Lcw$a;b()Ljava/util/Optional;
      intermediary method_27790 Lnet/minecraft/class_4558$class_8788;method_27790()Ljava/util/Optional;
      named getPlayerPredicate Lnet/minecraft/advancement/criterion/AbstractCriterion$Conditions;getPlayerPredicate()Ljava/util/Optional;
    • toJson

      public com.google.gson.JsonObject toJson()
      Specified by:
      toJson in interface CriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lap;a()Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807()Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson()Lcom/google/gson/JsonObject;