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) KilledByCrossbowCriterion.Conditions.create
(EntityPredicate.Builder[] victimPredicates) KilledByCrossbowCriterion.Conditions.create
(NumberRange.IntRange uniqueEntityTypes) 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
(Identifier recipeId) RecipeCraftedCriterion.Conditions.create
(Identifier recipeId, List<ItemPredicate.Builder> ingredients) RecipeUnlockedCriterion.create
(Identifier id) ShotCrossbowCriterion.Conditions.create
(Optional<ItemPredicate> item) ShotCrossbowCriterion.Conditions.create
(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
(ItemConvertible item) UsedTotemCriterion.Conditions.create
(ItemPredicate itemPredicate) 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
(Identifier recipeId) 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
(Block block, Item item) TickCriterion.Conditions.createLocation
(EntityPredicate.Builder entity) TickCriterion.Conditions.createLocation
(LocationPredicate.Builder location) 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
(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
(EntityType<?> entity, Item item) private static AdvancementCriterion
<ItemCriterion.Conditions> VanillaAdventureTabAdvancementGenerator.requirePlacedBlockReadByComparator
(Block block) private static AdvancementCriterion
<ItemCriterion.Conditions> VanillaAdventureTabAdvancementGenerator.requirePlacedComparatorReadingBlock
(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<?>> CookingRecipeJsonBuilder.criteria
private final Map
<String, AdvancementCriterion<?>> ShapedRecipeJsonBuilder.criteria
private final Map
<String, AdvancementCriterion<?>> SingleItemRecipeJsonBuilder.criteria
private final Map
<String, AdvancementCriterion<?>> SmithingTransformRecipeJsonBuilder.criteria
private final Map
<String, AdvancementCriterion<?>> SmithingTrimRecipeJsonBuilder.criteria
Modifier and TypeMethodDescriptionprotected static AdvancementCriterion
<InventoryChangedCriterion.Conditions> RecipeProvider.conditionsFromItem
(ItemConvertible item) private static AdvancementCriterion
<InventoryChangedCriterion.Conditions> RecipeProvider.conditionsFromItem
(NumberRange.IntRange count, ItemConvertible item) private static AdvancementCriterion
<InventoryChangedCriterion.Conditions> RecipeProvider.conditionsFromItemPredicates
(ItemPredicate[] predicates) private static AdvancementCriterion
<InventoryChangedCriterion.Conditions> RecipeProvider.conditionsFromPredicates
(ItemPredicate.Builder[] predicates) protected static AdvancementCriterion
<InventoryChangedCriterion.Conditions> RecipeProvider.conditionsFromTag
(TagKey<Item> tag) private static AdvancementCriterion
<EnterBlockCriterion.Conditions> RecipeProvider.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) SingleItemRecipeJsonBuilder.criterion
(String string, AdvancementCriterion<?> advancementCriterion) SmithingTransformRecipeJsonBuilder.criterion
(String name, AdvancementCriterion<?> criterion) SmithingTrimRecipeJsonBuilder.criterion
(String name, AdvancementCriterion<?> criterion)