Conditions

public final class Conditions implements AbstractCriterion.Conditions(source)

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private final Optional<ItemPredicate> item
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
public final Optional<ItemPredicate> getItem()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Boolean test(ServerPlayerEntity player, ItemStack stack, DamageSource damageSource)

Tests the given parameters against the datapack-specified conditions.

Inherited functions

Link copied to clipboard