Uses of Record Class
net.minecraft.advancement.AdvancementCriterion
Package
Description
-
Uses of AdvancementCriterion in net.minecraft.advancement
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<AdvancementCriterion<?>> AdvancementCriterion.CODEC
private final ImmutableMap.Builder
<String, AdvancementCriterion<?>> Advancement.Builder.criteria
private final Map
<String, AdvancementCriterion<?>> Advancement.criteria
The field for thecriteria
record component.private static final com.mojang.serialization.Codec
<Map<String, AdvancementCriterion<?>>> Advancement.CRITERIA_CODEC
private static final com.mojang.serialization.MapCodec
<AdvancementCriterion<?>> AdvancementCriterion.MAP_CODEC
Modifier and TypeMethodDescriptionAdvancement.criteria()
Returns the value of thecriteria
record component.private static <T extends CriterionConditions>
com.mojang.serialization.Codec<AdvancementCriterion<T>> Modifier and TypeMethodDescriptionprivate <T extends CriterionConditions>
voidPlayerAdvancementTracker.beginTracking
(AdvancementEntry advancement, String id, AdvancementCriterion<T> criterion) Advancement.Builder.criterion
(String name, AdvancementCriterion<?> criterion) private <T extends CriterionConditions>
voidPlayerAdvancementTracker.endTrackingCompleted
(AdvancementEntry advancement, String id, AdvancementCriterion<T> criterion) ModifierConstructorDescriptionAdvancement
(Optional<Identifier> parent, Optional<AdvancementDisplay> display, AdvancementRewards rewards, Map<String, AdvancementCriterion<?>> criteria, AdvancementRequirements requirements, boolean sendsTelemetryEvent) Advancement
(Optional<Identifier> optional, Optional<AdvancementDisplay> optional2, AdvancementRewards advancementRewards, Map<String, AdvancementCriterion<?>> map, AdvancementRequirements advancementRequirements, boolean bool, Optional<Text> optional3) -
Uses of AdvancementCriterion in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionBredAnimalsCriterion.Conditions.any()
BrewedPotionCriterion.Conditions.any()
ConsumeItemCriterion.Conditions.any()
CuredZombieVillagerCriterion.Conditions.any()
EnchantedItemCriterion.Conditions.any()
TameAnimalCriterion.Conditions.any()
VillagerTradeCriterion.Conditions.any()
BeeNestDestroyedCriterion.Conditions.create
(Block block, ItemPredicate.Builder itemPredicateBuilder, NumberRange.IntRange beeCountRange) BredAnimalsCriterion.Conditions.create
(Optional<EntityPredicate> parent, Optional<EntityPredicate> partner, Optional<EntityPredicate> child) BredAnimalsCriterion.Conditions.create
(EntityPredicate.Builder child) ChangedDimensionCriterion.Conditions.create()
ChangedDimensionCriterion.Conditions.create
(RegistryKey<World> from, RegistryKey<World> to) ChanneledLightningCriterion.Conditions.create
(EntityPredicate.Builder[] victims) ConstructBeaconCriterion.Conditions.create()
default AdvancementCriterion
<T> EffectsChangedCriterion.Conditions.create
(EntityEffectPredicate.Builder effects) EffectsChangedCriterion.Conditions.create
(EntityPredicate.Builder source) EntityHurtPlayerCriterion.Conditions.create()
EntityHurtPlayerCriterion.Conditions.create
(DamagePredicate predicate) EntityHurtPlayerCriterion.Conditions.create
(DamagePredicate.Builder damageBuilder) FallAfterExplosionCriterion.Conditions.create
(DistancePredicate distance, EntityPredicate.Builder cause) FilledBucketCriterion.Conditions.create
(ItemPredicate.Builder item) FishingRodHookedCriterion.Conditions.create
(Optional<ItemPredicate> rod, Optional<EntityPredicate> hookedEntity, Optional<ItemPredicate> caughtItem) ItemDurabilityChangedCriterion.Conditions.create
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, NumberRange.IntRange durability) ItemDurabilityChangedCriterion.Conditions.create
(Optional<ItemPredicate> item, NumberRange.IntRange durability) LevitationCriterion.Conditions.create
(DistancePredicate distance) LightningStrikeCriterion.Conditions.create
(Optional<EntityPredicate> lightning, Optional<EntityPredicate> bystander) PlayerGeneratesContainerLootCriterion.Conditions.create
(RegistryKey<LootTable> registryKey) PlayerHurtEntityCriterion.Conditions.create()
PlayerHurtEntityCriterion.Conditions.create
(Optional<DamagePredicate> damage, Optional<EntityPredicate> entity) PlayerHurtEntityCriterion.Conditions.create
(DamagePredicate.Builder damage) PlayerHurtEntityCriterion.Conditions.create
(DamagePredicate.Builder damage, Optional<EntityPredicate> entity) PlayerInteractedWithEntityCriterion.Conditions.create
(Optional<LootContextPredicate> playerPredicate, ItemPredicate.Builder item, Optional<LootContextPredicate> entity) PlayerInteractedWithEntityCriterion.Conditions.create
(ItemPredicate.Builder item, Optional<LootContextPredicate> entity) RecipeCraftedCriterion.Conditions.create
(RegistryKey<Recipe<?>> recipeKey) RecipeCraftedCriterion.Conditions.create
(RegistryKey<Recipe<?>> recipeKey, List<ItemPredicate.Builder> ingredients) RecipeUnlockedCriterion.create
(RegistryKey<Recipe<?>> registryKey) ShotCrossbowCriterion.Conditions.create
(Optional<ItemPredicate> item) ShotCrossbowCriterion.Conditions.create
(RegistryEntryLookup<Item> itemRegistry, ItemConvertible item) StartedRidingCriterion.Conditions.create
(EntityPredicate.Builder player) SummonedEntityCriterion.Conditions.create
(EntityPredicate.Builder summonedEntityPredicateBuilder) TameAnimalCriterion.Conditions.create
(EntityPredicate.Builder entity) TargetHitCriterion.Conditions.create
(NumberRange.IntRange signalStrength, Optional<LootContextPredicate> projectile) UsedTotemCriterion.Conditions.create
(ItemPredicate itemPredicate) UsedTotemCriterion.Conditions.create
(RegistryEntryLookup<Item> itemRegistry, ItemConvertible item) UsingItemCriterion.Conditions.create
(EntityPredicate.Builder player, ItemPredicate.Builder item) VillagerTradeCriterion.Conditions.create
(EntityPredicate.Builder playerPredicate) ItemCriterion.Conditions.createAllayDropItemOnBlock
(LocationPredicate.Builder location, ItemPredicate.Builder item) TickCriterion.Conditions.createAvoidVibration()
RecipeCraftedCriterion.Conditions.createCrafterRecipeCrafted
(RegistryKey<Recipe<?>> recipeKey) KilledByArrowCriterion.Conditions.createCrossbow
(RegistryEntryLookup<Item> itemRegistry, EntityPredicate.Builder[] victims) KilledByArrowCriterion.Conditions.createCrossbow
(RegistryEntryLookup<Item> itemRegistry, NumberRange.IntRange uniqueEntityTypeCount) PlayerHurtEntityCriterion.Conditions.createDamage
(Optional<DamagePredicate> damage) PlayerHurtEntityCriterion.Conditions.createEntity
(Optional<EntityPredicate> entity) OnKilledCriterion.Conditions.createEntityKilledPlayer()
OnKilledCriterion.Conditions.createEntityKilledPlayer
(Optional<EntityPredicate> entity) OnKilledCriterion.Conditions.createEntityKilledPlayer
(Optional<EntityPredicate> entity, Optional<DamageSourcePredicate> killingBlow) OnKilledCriterion.Conditions.createEntityKilledPlayer
(Optional<EntityPredicate> entity, DamageSourcePredicate.Builder damageSourcePredicateBuilder) OnKilledCriterion.Conditions.createEntityKilledPlayer
(EntityPredicate.Builder killerEntityPredicateBuilder) OnKilledCriterion.Conditions.createEntityKilledPlayer
(EntityPredicate.Builder killerEntityPredicateBuilder, Optional<DamageSourcePredicate> killingBlow) OnKilledCriterion.Conditions.createEntityKilledPlayer
(EntityPredicate.Builder killerEntityPredicateBuilder, DamageSourcePredicate.Builder damageSourcePredicateBuilder) TickCriterion.Conditions.createHeroOfTheVillage()
ItemCriterion.Conditions.createItemUsedOnBlock
(LocationPredicate.Builder location, ItemPredicate.Builder item) OnKilledCriterion.Conditions.createKillMobNearSculkCatalyst()
TickCriterion.Conditions.createLocation
(Optional<EntityPredicate> entity) TickCriterion.Conditions.createLocation
(EntityPredicate.Builder entity) TickCriterion.Conditions.createLocation
(LocationPredicate.Builder location) TickCriterion.Conditions.createLocation
(RegistryEntryLookup<Block> blockRegistry, RegistryEntryLookup<Item> itemRegistry, Block steppingOn, Item boots) ItemCriterion.Conditions.createPlacedBlock
(Block block) ItemCriterion.Conditions.createPlacedBlock
(LootCondition.Builder[] locationConditions) OnKilledCriterion.Conditions.createPlayerKilledEntity()
OnKilledCriterion.Conditions.createPlayerKilledEntity
(Optional<EntityPredicate> entity) OnKilledCriterion.Conditions.createPlayerKilledEntity
(Optional<EntityPredicate> entity, Optional<DamageSourcePredicate> killingBlow) OnKilledCriterion.Conditions.createPlayerKilledEntity
(Optional<EntityPredicate> entity, DamageSourcePredicate.Builder damageSourcePredicateBuilder) OnKilledCriterion.Conditions.createPlayerKilledEntity
(EntityPredicate.Builder killedEntityPredicateBuilder) OnKilledCriterion.Conditions.createPlayerKilledEntity
(EntityPredicate.Builder killedEntityPredicateBuilder, Optional<DamageSourcePredicate> killingBlow) OnKilledCriterion.Conditions.createPlayerKilledEntity
(EntityPredicate.Builder killedEntityPredicateBuilder, DamageSourcePredicate.Builder killingBlowBuilder) TickCriterion.Conditions.createSleptInBed()
ThrownItemPickedUpByEntityCriterion.Conditions.createThrownItemPickedUpByEntity
(LootContextPredicate player, Optional<ItemPredicate> item, Optional<LootContextPredicate> entity) ThrownItemPickedUpByEntityCriterion.Conditions.createThrownItemPickedUpByPlayer
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, Optional<LootContextPredicate> entity) TickCriterion.Conditions.createTick()
TravelCriterion.Conditions.fallFromHeight
(EntityPredicate.Builder entity, DistancePredicate distance, LocationPredicate.Builder startPos) ChangedDimensionCriterion.Conditions.from
(RegistryKey<World> from) ConsumeItemCriterion.Conditions.item
(RegistryEntryLookup<Item> itemRegistry, ItemConvertible item) InventoryChangedCriterion.Conditions.items
(ItemConvertible[] items) InventoryChangedCriterion.Conditions.items
(ItemPredicate[] items) InventoryChangedCriterion.Conditions.items
(ItemPredicate.Builder[] items) ConstructBeaconCriterion.Conditions.level
(NumberRange.IntRange level) TravelCriterion.Conditions.netherTravel
(DistancePredicate distance) ConsumeItemCriterion.Conditions.predicate
(ItemPredicate.Builder predicate) TravelCriterion.Conditions.rideEntityInLava
(EntityPredicate.Builder entity, DistancePredicate distance) ChangedDimensionCriterion.Conditions.to
(RegistryKey<World> to) -
Uses of AdvancementCriterion in net.minecraft.data.server.advancement.vanilla
Modifier and TypeMethodDescriptionprivate static AdvancementCriterion
<LightningStrikeCriterion.Conditions> VanillaAdventureTabAdvancementGenerator.createLightningStrike
(NumberRange.IntRange range, Optional<EntityPredicate> entity) private static AdvancementCriterion
<UsingItemCriterion.Conditions> VanillaAdventureTabAdvancementGenerator.createLookingAtEntityUsing
(EntityPredicate.Builder lookingAt, ItemPredicate.Builder using) private static AdvancementCriterion
<ItemCriterion.Conditions> VanillaAdventureTabAdvancementGenerator.requirePlacedBlockReadByComparator
(RegistryEntryLookup<Block> blockRegistry, Block block) private static AdvancementCriterion
<ItemCriterion.Conditions> VanillaAdventureTabAdvancementGenerator.requirePlacedComparatorReadingBlock
(RegistryEntryLookup<Block> blockRegistry, Block block) -
Uses of AdvancementCriterion in net.minecraft.data.server.recipe
Modifier and TypeFieldDescriptionprivate final Map
<String, AdvancementCriterion<?>> ShapelessRecipeJsonBuilder.advancementBuilder
private final Map
<String, AdvancementCriterion<?>> TransmuteRecipeJsonBuilder.advancementBuilder
private final Map
<String, AdvancementCriterion<?>> CookingRecipeJsonBuilder.criteria
private final Map
<String, AdvancementCriterion<?>> ShapedRecipeJsonBuilder.criteria
private final Map
<String, AdvancementCriterion<?>> SmithingTransformRecipeJsonBuilder.criteria
private final Map
<String, AdvancementCriterion<?>> SmithingTrimRecipeJsonBuilder.criteria
private final Map
<String, AdvancementCriterion<?>> StonecuttingRecipeJsonBuilder.criteria
Modifier and TypeMethodDescriptionRecipeGenerator.conditionsFromItem
(ItemConvertible item) RecipeGenerator.conditionsFromItem
(NumberRange.IntRange count, ItemConvertible item) private static AdvancementCriterion
<InventoryChangedCriterion.Conditions> RecipeGenerator.conditionsFromItemPredicates
(ItemPredicate[] predicates) private static AdvancementCriterion
<InventoryChangedCriterion.Conditions> RecipeGenerator.conditionsFromPredicates
(ItemPredicate.Builder[] predicates) RecipeGenerator.conditionsFromTag
(TagKey<Item> tag) private static AdvancementCriterion
<EnterBlockCriterion.Conditions> RecipeGenerator.requireEnteringFluid
(Block block) Modifier and TypeMethodDescriptionCookingRecipeJsonBuilder.criterion
(String string, AdvancementCriterion<?> advancementCriterion) CraftingRecipeJsonBuilder.criterion
(String name, AdvancementCriterion<?> criterion) ShapedRecipeJsonBuilder.criterion
(String string, AdvancementCriterion<?> advancementCriterion) ShapelessRecipeJsonBuilder.criterion
(String string, AdvancementCriterion<?> advancementCriterion) SmithingTransformRecipeJsonBuilder.criterion
(String name, AdvancementCriterion<?> criterion) SmithingTrimRecipeJsonBuilder.criterion
(String name, AdvancementCriterion<?> criterion) StonecuttingRecipeJsonBuilder.criterion
(String string, AdvancementCriterion<?> advancementCriterion) TransmuteRecipeJsonBuilder.criterion
(String string, AdvancementCriterion<?> advancementCriterion)