Uses of Record Class
net.minecraft.advancements.Criterion
Package
Description
-
Uses of Criterion in net.minecraft.advancements
Modifier and TypeFieldDescriptionAdvancement.Builder.criteria
Advancement.criteria
The field for thecriteria
record component.Modifier and TypeMethodDescriptionCriterionTrigger.createCriterion
(T p_299598_) static Criterion<?>
Criterion.criterionFromJson
(com.google.gson.JsonObject p_11418_, DeserializationContext p_11419_) private static <T extends CriterionTriggerInstance>
Criterion<T>Criterion.criterionFromJson
(com.google.gson.JsonObject p_298246_, DeserializationContext p_297334_, CriterionTrigger<T> p_300883_) Modifier and TypeMethodDescriptionAdvancement.criteria()
Returns the value of thecriteria
record component.Criterion.criteriaFromJson
(com.google.gson.JsonObject p_11427_, DeserializationContext p_11428_) Modifier and TypeMethodDescriptionAdvancement.Builder.addCriterion
(String p_138384_, Criterion<?> p_138385_) ModifierConstructorDescriptionAdvancement
(Optional<ResourceLocation> p_299284_, Optional<DisplayInfo> p_301017_, AdvancementRewards p_286389_, Map<String, Criterion<?>> p_286635_, AdvancementRequirements p_300504_, boolean p_286478_) Advancement
(Optional<ResourceLocation> parent, Optional<DisplayInfo> display, AdvancementRewards rewards, Map<String, Criterion<?>> criteria, AdvancementRequirements requirements, boolean sendsTelemetryEvent, Optional<Component> name) Creates an instance of aAdvancement
record class. -
Uses of Criterion in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionItemUsedOnLocationTrigger.TriggerInstance.allayDropItemOnBlock
(LocationPredicate.Builder p_286325_, ItemPredicate.Builder p_286531_) PlayerTrigger.TriggerInstance.avoidVibration()
BredAnimalsTrigger.TriggerInstance.bredAnimals()
BredAnimalsTrigger.TriggerInstance.bredAnimals
(Optional<EntityPredicate> p_298213_, Optional<EntityPredicate> p_299258_, Optional<EntityPredicate> p_297439_) BredAnimalsTrigger.TriggerInstance.bredAnimals
(EntityPredicate.Builder p_18668_) BrewedPotionTrigger.TriggerInstance.brewedPotion()
ChangeDimensionTrigger.TriggerInstance.changedDimension()
ChangeDimensionTrigger.TriggerInstance.changedDimension
(ResourceKey<Level> p_301176_, ResourceKey<Level> p_298639_) ChangeDimensionTrigger.TriggerInstance.changedDimensionFrom
(ResourceKey<Level> p_147564_) ChangeDimensionTrigger.TriggerInstance.changedDimensionTo
(ResourceKey<Level> p_19783_) ItemDurabilityTrigger.TriggerInstance.changedDurability
(Optional<ContextAwarePredicate> p_299530_, Optional<ItemPredicate> p_300893_, MinMaxBounds.Ints p_286730_) ItemDurabilityTrigger.TriggerInstance.changedDurability
(Optional<ItemPredicate> p_300870_, MinMaxBounds.Ints p_151288_) ChanneledLightningTrigger.TriggerInstance.channeledLightning
(EntityPredicate.Builder... p_299370_) ConstructBeaconTrigger.TriggerInstance.constructedBeacon()
ConstructBeaconTrigger.TriggerInstance.constructedBeacon
(MinMaxBounds.Ints p_22766_) RecipeCraftedTrigger.TriggerInstance.craftedItem
(ResourceLocation p_282794_) RecipeCraftedTrigger.TriggerInstance.craftedItem
(ResourceLocation p_283538_, List<ItemPredicate.Builder> p_299678_) KilledByCrossbowTrigger.TriggerInstance.crossbowKilled
(EntityPredicate.Builder... p_46901_) KilledByCrossbowTrigger.TriggerInstance.crossbowKilled
(MinMaxBounds.Ints p_46894_) CuredZombieVillagerTrigger.TriggerInstance.curedZombieVillager()
BeeNestDestroyedTrigger.TriggerInstance.destroyedBeeNest
(Block p_17513_, ItemPredicate.Builder p_17514_, MinMaxBounds.Ints p_17515_) EnchantedItemTrigger.TriggerInstance.enchantedItem()
EnterBlockTrigger.TriggerInstance.entersBlock
(Block p_31298_) EntityHurtPlayerTrigger.TriggerInstance.entityHurtPlayer()
EntityHurtPlayerTrigger.TriggerInstance.entityHurtPlayer
(DamagePredicate p_150188_) EntityHurtPlayerTrigger.TriggerInstance.entityHurtPlayer
(DamagePredicate.Builder p_35207_) KilledTrigger.TriggerInstance.entityKilledPlayer()
KilledTrigger.TriggerInstance.entityKilledPlayer
(Optional<EntityPredicate> p_300543_) KilledTrigger.TriggerInstance.entityKilledPlayer
(Optional<EntityPredicate> p_297719_, Optional<DamageSourcePredicate> p_298112_) KilledTrigger.TriggerInstance.entityKilledPlayer
(Optional<EntityPredicate> p_297520_, DamageSourcePredicate.Builder p_299317_) KilledTrigger.TriggerInstance.entityKilledPlayer
(EntityPredicate.Builder p_300131_) KilledTrigger.TriggerInstance.entityKilledPlayer
(EntityPredicate.Builder p_298074_, Optional<DamageSourcePredicate> p_300879_) KilledTrigger.TriggerInstance.entityKilledPlayer
(EntityPredicate.Builder p_152122_, DamageSourcePredicate.Builder p_299947_) DistanceTrigger.TriggerInstance.fallFromHeight
(EntityPredicate.Builder p_186198_, DistancePredicate p_186199_, LocationPredicate.Builder p_300400_) FilledBucketTrigger.TriggerInstance.filledBucket
(ItemPredicate.Builder p_297424_) FishingRodHookedTrigger.TriggerInstance.fishedItem
(Optional<ItemPredicate> p_300012_, Optional<EntityPredicate> p_297455_, Optional<ItemPredicate> p_297238_) EffectsChangedTrigger.TriggerInstance.gotEffectsFrom
(EntityPredicate.Builder p_298504_) EffectsChangedTrigger.TriggerInstance.hasEffects
(MobEffectsPredicate.Builder p_300809_) InventoryChangeTrigger.TriggerInstance.hasItems
(ItemPredicate... p_43198_) InventoryChangeTrigger.TriggerInstance.hasItems
(ItemPredicate.Builder... p_297239_) ItemUsedOnLocationTrigger.TriggerInstance.itemUsedOnBlock
(LocationPredicate.Builder p_286808_, ItemPredicate.Builder p_286486_) PlayerInteractTrigger.TriggerInstance.itemUsedOnEntity
(Optional<ContextAwarePredicate> p_297673_, ItemPredicate.Builder p_286235_, Optional<ContextAwarePredicate> p_301321_) PlayerInteractTrigger.TriggerInstance.itemUsedOnEntity
(ItemPredicate.Builder p_286289_, Optional<ContextAwarePredicate> p_297754_) LevitationTrigger.TriggerInstance.levitated
(DistancePredicate p_49145_) LightningStrikeTrigger.TriggerInstance.lightningStrike
(Optional<EntityPredicate> p_301310_, Optional<EntityPredicate> p_299336_) PlayerTrigger.TriggerInstance.located
(Optional<EntityPredicate> p_301210_) PlayerTrigger.TriggerInstance.located
(EntityPredicate.Builder p_299982_) PlayerTrigger.TriggerInstance.located
(LocationPredicate.Builder p_297421_) UsingItemTrigger.TriggerInstance.lookingAt
(EntityPredicate.Builder p_163884_, ItemPredicate.Builder p_163885_) LootTableTrigger.TriggerInstance.lootTableUsed
(ResourceLocation p_54619_) ItemUsedOnLocationTrigger.TriggerInstance.placedBlock
(Block p_286530_) ItemUsedOnLocationTrigger.TriggerInstance.placedBlock
(LootItemCondition.Builder... p_286365_) PlayerHurtEntityTrigger.TriggerInstance.playerHurtEntity()
PlayerHurtEntityTrigger.TriggerInstance.playerHurtEntity
(Optional<DamagePredicate> p_299532_, Optional<EntityPredicate> p_298332_) PlayerHurtEntityTrigger.TriggerInstance.playerHurtEntity
(Optional<EntityPredicate> p_297304_) PlayerHurtEntityTrigger.TriggerInstance.playerHurtEntity
(DamagePredicate.Builder p_300965_, Optional<EntityPredicate> p_298699_) PlayerHurtEntityTrigger.TriggerInstance.playerHurtEntityWithDamage
(Optional<DamagePredicate> p_297888_) PlayerHurtEntityTrigger.TriggerInstance.playerHurtEntityWithDamage
(DamagePredicate.Builder p_297478_) KilledTrigger.TriggerInstance.playerKilledEntity()
KilledTrigger.TriggerInstance.playerKilledEntity
(Optional<EntityPredicate> p_299523_) KilledTrigger.TriggerInstance.playerKilledEntity
(Optional<EntityPredicate> p_299572_, Optional<DamageSourcePredicate> p_297245_) KilledTrigger.TriggerInstance.playerKilledEntity
(Optional<EntityPredicate> p_300641_, DamageSourcePredicate.Builder p_300954_) KilledTrigger.TriggerInstance.playerKilledEntity
(EntityPredicate.Builder p_48137_) KilledTrigger.TriggerInstance.playerKilledEntity
(EntityPredicate.Builder p_152106_, Optional<DamageSourcePredicate> p_297683_) KilledTrigger.TriggerInstance.playerKilledEntity
(EntityPredicate.Builder p_300999_, DamageSourcePredicate.Builder p_298768_) KilledTrigger.TriggerInstance.playerKilledEntityNearSculkCatalyst()
StartRidingTrigger.TriggerInstance.playerStartsRiding
(EntityPredicate.Builder p_160402_) PlayerTrigger.TriggerInstance.raidWon()
DistanceTrigger.TriggerInstance.rideEntityInLava
(EntityPredicate.Builder p_186195_, DistancePredicate p_186196_) ShotCrossbowTrigger.TriggerInstance.shotCrossbow
(Optional<ItemPredicate> p_299474_) ShotCrossbowTrigger.TriggerInstance.shotCrossbow
(ItemLike p_65484_) PlayerTrigger.TriggerInstance.sleptInBed()
SlideDownBlockTrigger.TriggerInstance.slidesDownBlock
(Block p_67007_) SummonedEntityTrigger.TriggerInstance.summonedEntity
(EntityPredicate.Builder p_68276_) TameAnimalTrigger.TriggerInstance.tamedAnimal()
TameAnimalTrigger.TriggerInstance.tamedAnimal
(EntityPredicate.Builder p_299185_) TargetBlockTrigger.TriggerInstance.targetHit
(MinMaxBounds.Ints p_286700_, Optional<ContextAwarePredicate> p_299065_) PickedUpItemTrigger.TriggerInstance.thrownItemPickedUpByEntity
(ContextAwarePredicate p_286865_, Optional<ItemPredicate> p_297283_, Optional<ContextAwarePredicate> p_300033_) PickedUpItemTrigger.TriggerInstance.thrownItemPickedUpByPlayer
(Optional<ContextAwarePredicate> p_299013_, Optional<ItemPredicate> p_299788_, Optional<ContextAwarePredicate> p_299814_) PlayerTrigger.TriggerInstance.tick()
TradeTrigger.TriggerInstance.tradedWithVillager()
TradeTrigger.TriggerInstance.tradedWithVillager
(EntityPredicate.Builder p_191437_) DistanceTrigger.TriggerInstance.travelledThroughNether
(DistancePredicate p_186193_) RecipeUnlockedTrigger.unlocked
(ResourceLocation p_63729_) ConsumeItemTrigger.TriggerInstance.usedItem()
ConsumeItemTrigger.TriggerInstance.usedItem
(ItemPredicate.Builder p_297282_) UsedTotemTrigger.TriggerInstance.usedTotem
(ItemPredicate p_298404_) PlayerTrigger.TriggerInstance.walkOnBlockWithEquipment
(Block p_222638_, Item p_222639_) -
Uses of Criterion in net.minecraft.data.advancements.packs
Modifier and TypeMethodDescriptionprivate static Criterion<LightningStrikeTrigger.TriggerInstance>
VanillaAdventureAdvancements.fireCountAndBystander
(MinMaxBounds.Ints p_252298_, Optional<EntityPredicate> p_300450_) private static Criterion<UsingItemTrigger.TriggerInstance>
VanillaAdventureAdvancements.lookAtThroughItem
(EntityType<?> p_249703_, Item p_250746_) private static Criterion<ItemUsedOnLocationTrigger.TriggerInstance>
VanillaAdventureAdvancements.placedBlockReadByComparator
(Block p_286401_) private static Criterion<ItemUsedOnLocationTrigger.TriggerInstance>
VanillaAdventureAdvancements.placedComparatorReadingBlock
(Block p_286250_) -
Uses of Criterion in net.minecraft.data.recipes
Modifier and TypeFieldDescriptionShapedRecipeBuilder.criteria
ShapelessRecipeBuilder.criteria
SimpleCookingRecipeBuilder.criteria
SingleItemRecipeBuilder.criteria
SmithingTransformRecipeBuilder.criteria
SmithingTrimRecipeBuilder.criteria
Modifier and TypeMethodDescriptionprivate static Criterion<InventoryChangeTrigger.TriggerInstance>
RecipeProvider.has
(MinMaxBounds.Ints p_176521_, ItemLike p_176522_) protected static Criterion<InventoryChangeTrigger.TriggerInstance>
protected static Criterion<InventoryChangeTrigger.TriggerInstance>
private static Criterion<EnterBlockTrigger.TriggerInstance>
private static Criterion<InventoryChangeTrigger.TriggerInstance>
RecipeProvider.inventoryTrigger
(ItemPredicate... p_297226_) private static Criterion<InventoryChangeTrigger.TriggerInstance>
RecipeProvider.inventoryTrigger
(ItemPredicate.Builder... p_299527_) Modifier and TypeMethodDescriptionRecipeBuilder.unlockedBy
(String p_176496_, Criterion<?> p_297505_) ShapedRecipeBuilder.unlockedBy
(String p_176751_, Criterion<?> p_300780_) ShapelessRecipeBuilder.unlockedBy
(String p_176781_, Criterion<?> p_300919_) SimpleCookingRecipeBuilder.unlockedBy
(String p_176792_, Criterion<?> p_297700_) SingleItemRecipeBuilder.unlockedBy
(String p_176810_, Criterion<?> p_298188_) -
Uses of Criterion in net.minecraft.server
Modifier and TypeMethodDescriptionprivate <T extends CriterionTriggerInstance>
voidPlayerAdvancements.registerListener
(AdvancementHolder p_297859_, String p_300029_, Criterion<T> p_298869_) private <T extends CriterionTriggerInstance>
voidPlayerAdvancements.removeListener
(AdvancementHolder p_301071_, String p_298445_, Criterion<T> p_297428_)