test

public final Boolean test(ServerPlayerEntity player, ItemStack stack, DamageSource damageSource)(source)

Tests the given parameters against the datapack-specified conditions.

Parameters

player

The player triggering the criterion

stack

The item stack the player is using

damageSource

The damage the player took