Package-level declarations

Types

Link copied to clipboard
class WrappedPlayerInteractEvent(val event: PlayerInteractEvent) : Event

A class wrapping Bukkit's PlayerInteractEvent, which will not be called for the other hand if an action has been performed (marked via WrappedPlayerInteractEvent.actionPerformed).

Functions

Link copied to clipboard
fun LivingEntity.swingHandEventless(hand: EquipmentSlot)

Lets the player swing their hand without triggering any server-side interaction related events.

Link copied to clipboard
fun LivingEntity.swingMainHandEventless()

Lets the player swing their main hand without triggering any server-side interaction related events.

Link copied to clipboard
fun LivingEntity.swingOffHandEventless()

Lets the player swing their off-hand without triggering any server-side interaction related events.