Conditions

Conditions of TakeDamageWhileUsingItemCriterion.

Parameters

player

Predicate matching the player

item

Predicate matching the item the player is using

damageType

Predicate matching the damage the player took

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun player(): Optional<LootContextPredicate>
Link copied to clipboard
fun test(player: ServerPlayerEntity, stack: ItemStack, damageSource: DamageSource): Boolean

Tests the given parameters against the datapack-specified conditions.

Inherited functions

Link copied to clipboard
open override fun validate(validator: LootContextPredicateValidator)