Class PlayerStabEvent
java.lang.Object
net.minestom.server.event.player.PlayerStabEvent
- All Implemented Interfaces:
Event, EntityEvent, EntityInstanceEvent, InstanceEvent, PlayerEvent, PlayerInstanceEvent
Called when a player attempts to use a stab attack on an item with the
PiercingWeapon enchantment.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the item which the player attacked with.Gets the player.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EntityInstanceEvent
getInstanceMethods inherited from interface PlayerEvent
getEntity
-
Constructor Details
-
PlayerStabEvent
-
-
Method Details
-
getPlayer
Description copied from interface:PlayerEventGets the player.- Specified by:
getPlayerin interfacePlayerEvent- Returns:
- the player
-
getItemStack
Gets the item which the player attacked with.- Returns:
- the item in main hand
-