Class PlayerInteractEvent
Dispatched whenever an OpenPlayer interacts with a block or air
Inheritance
System.Object
PlayerInteractEvent
Assembly: OpenAPI.dll
Syntax
public class PlayerInteractEvent : PlayerEvent
Constructors
|
Improve this Doc
View Source
PlayerInteractEvent(OpenPlayer, Item, BlockCoordinates, BlockFace)
Declaration
public PlayerInteractEvent(OpenPlayer player, Item item, BlockCoordinates blockCoordinates, BlockFace face)
Parameters
Type |
Name |
Description |
OpenPlayer |
player |
|
Item |
item |
|
BlockCoordinates |
blockCoordinates |
|
BlockFace |
face |
|
|
Improve this Doc
View Source
PlayerInteractEvent(OpenPlayer, Item, BlockCoordinates, BlockFace, PlayerInteractEvent.PlayerInteractType)
Declaration
public PlayerInteractEvent(OpenPlayer player, Item item, BlockCoordinates coordinates, BlockFace face, PlayerInteractEvent.PlayerInteractType type)
Parameters
Properties
|
Improve this Doc
View Source
Coordinates
The coordinates of the block the player interacted with
Declaration
public BlockCoordinates Coordinates { get; }
Property Value
Type |
Description |
BlockCoordinates |
|
|
Improve this Doc
View Source
Face
The face that the player hit
Declaration
public BlockFace Face { get; }
Property Value
Type |
Description |
BlockFace |
|
|
Improve this Doc
View Source
InteractType
Declaration
public PlayerInteractEvent.PlayerInteractType InteractType { get; }
Property Value
|
Improve this Doc
View Source
Item
The item the player was holding
Declaration
public Item Item { get; }
Property Value