Package-level declarations
Inherited properties
Kotlin utility to get or set the temporary data associated with an entity. To be used by the item class being used on server side.
Gets the approximate position of the item in the staff, when held my an entity.
Gets the approximate position of the staff's tip, when held by an entity.
Checks if the user has sufficient space in front to use the staff.
Returns if the given item has a registered handler when inserted into a staff.
Checks if the player's attack is on cooldown.
Checks if an item is added the given staff item stack.
Gets the item inserted into the given staff item stack.
Gets the item stack inserted into the given staff item stack. The value returned MUST NOT be modified in any way, use mutableItemStackInStaff instead.
Gets or sets a copy of the item stack inserted into the given staff item stack. The value returned or passed in can be freely modified.
Returns the registered staff handler of the given item if available.
Returns the registered staff handler of the given item if available, StaffHandler.Default otherwise.
Functions
Creates an EntityAttributeModifier, which changes the attack damage to totalAttackDamage after subtracting the player's base attack damage.
Creates an EntityAttributeModifier, which changes the attack speed to totalAttackSpeed after subtracting the player's base attack speed.
Creates an EntityAttributeModifier, which changes the attack speed to the reciprocal of totalEquipTime after subtracting the player's base attack speed.
Creates an EntityAttributeModifier, which increases the interaction range by additionalRange.
Inherited functions
Adds the default staff modifier of the given entity attribute as main hand modifier.
Checks if the given item is on cooldown and cannot be used.