isEffectiveOn

@NotNull()
ActionResult isEffectiveOn(Tag<Item> tag, BlockState state, ItemStack stack, LivingEntity user)

Determines whether this handler is active and effective of the tools.

Return

the result of effectiveness

Parameters

tag

the tag involved

state

the block state to break

stack

the item stack breaking the block

user

the user involved in breaking the block, null if not applicable.

Sources

jvm source
Link copied to clipboard