Package net.minecraft.advancements
Interface CriterionTrigger<T extends CriterionTriggerInstance>
- All Known Implementing Classes:
BeeNestDestroyedTrigger
,BredAnimalsTrigger
,BrewedPotionTrigger
,ChangeDimensionTrigger
,ChanneledLightningTrigger
,ConstructBeaconTrigger
,ConsumeItemTrigger
,CuredZombieVillagerTrigger
,DistanceTrigger
,EffectsChangedTrigger
,EnchantedItemTrigger
,EnterBlockTrigger
,EntityHurtPlayerTrigger
,FilledBucketTrigger
,FishingRodHookedTrigger
,ImpossibleTrigger
,InventoryChangeTrigger
,ItemDurabilityTrigger
,ItemUsedOnLocationTrigger
,KilledByCrossbowTrigger
,KilledTrigger
,LevitationTrigger
,LightningStrikeTrigger
,LootTableTrigger
,PickedUpItemTrigger
,PlayerHurtEntityTrigger
,PlayerInteractTrigger
,PlayerTrigger
,RecipeCraftedTrigger
,RecipeUnlockedTrigger
,ShotCrossbowTrigger
,SimpleCriterionTrigger
,SlideDownBlockTrigger
,StartRidingTrigger
,SummonedEntityTrigger
,TameAnimalTrigger
,TargetBlockTrigger
,TradeTrigger
,UsedEnderEyeTrigger
,UsedTotemTrigger
,UsingItemTrigger
public interface CriterionTrigger<T extends CriterionTriggerInstance>
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPlayerListener
(PlayerAdvancements p_13674_, CriterionTrigger.Listener<T> p_13675_) com.mojang.serialization.Codec<T>
codec()
createCriterion
(T p_301092_) void
removePlayerListener
(PlayerAdvancements p_13676_, CriterionTrigger.Listener<T> p_13677_) void
removePlayerListeners
(PlayerAdvancements p_13673_)
-
Method Details
-
addPlayerListener
-
removePlayerListener
-
removePlayerListeners
-
codec
com.mojang.serialization.Codec<T> codec() -
createCriterion
-