trigger

public final Unit trigger(ServerPlayerEntity player, ItemStack stack, DamageSource damageSource)(source)

Triggers the criterion.

Parameters

player

The player triggering the criterion

stack

The item stack the player is using

damageSource

The damage the player took