Staff Item Handler
Provides functionality for a staff, when an item is inserted into it.
See also
Inheritors
Properties
Functions
Called on the client side by Fabric API, when the NBT of the held item gets updated.
Called on the client side by Forge, when the NBT of the held item gets updated.
Called on both the client and the server by Staff Mod, when an entity attacks nothing (left clicks on air) with a staff.
Called on both the client and the server by Fabric API (Fabric) or Staff Mod (Forge),when an entity attacks a block with a staff.
Called on both the client by Staff Mod and the server by Fabric API (Fabric) or Staff Mod (Forge), when an entity attacks an entity with a staff.
Checks, if a staff item handler for the given item is registered.
Called on both the client and the server by Minecraft, when an entity finishes using the staff (usage ticks reach maxUseTime).
Gets the registered staff item handler for the given item or null
, if no staff item handler was registered.
Gets the attribute modifiers (damage, attack speed, etc.) of the staff when held.
Called on both the client and the server by Minecraft, when an entity stops using the staff before being used for maxUseTime. If that time is reached, finishUsing will be called.
Registers a StaffItemHandler for the given item ID.
Called on both the client and the server by Minecraft when the player uses the staff.
Called on both the client and the server by Minecraft, when an entity uses the staff on a block. This method may not be called, if the block handles the use event (for example, a chest).
Called on both the client and the server by Minecraft, when an entity uses the staff on an entity. This method may not be called, if the entity handles the use event (for example, a horse). This method will not be called, if the player is in spectator mode.