Take Damage While Using Item Criterion
class TakeDamageWhileUsingItemCriterion : AbstractCriterion<TakeDamageWhileUsingItemCriterion.Conditions> (source)
A fusion criterion between UsingItemCriterion and EntityHurtPlayerCriterion.
Types
Link copied to clipboard
data class Conditions(val player: Optional<LootContextPredicate>, val item: Optional<ItemPredicate>, val damageType: Optional<DamageSourcePredicate>) : AbstractCriterion.Conditions
Conditions of TakeDamageWhileUsingItemCriterion.
Inherited functions
Link copied to clipboard
override fun beginTrackingCondition(manager: PlayerAdvancementTracker, conditions: Criterion.ConditionsContainer<TakeDamageWhileUsingItemCriterion.Conditions>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override fun endTrackingCondition(manager: PlayerAdvancementTracker, conditions: Criterion.ConditionsContainer<TakeDamageWhileUsingItemCriterion.Conditions>)
Link copied to clipboard
protected open fun trigger(player: ServerPlayerEntity, predicate: Predicate<TakeDamageWhileUsingItemCriterion.Conditions>)