attack

public Unit attack(ItemStack staffStack, World world, LivingEntity attacker, Hand hand)(source)

Called on both the client by Architectury API and the server by Staff Mod, when an entity attacks thin air with a staff.

Parameters

staffStack

The item stack used to perform the action

world

The world the attacker is in

attacker

The entity, which attacked with the staff

hand

The hand of the attacker, in which the staff is