Search Results for

    Show / Hide Table of Contents

    Class PlayerInteractEvent

    Dispatched whenever an OpenPlayer interacts with a block or air

    Inheritance
    System.Object
    Event
    PlayerEvent
    PlayerInteractEvent
    Inherited Members
    PlayerEvent.Player
    Event.IsCancelled
    Event.SetCancelled(Boolean)
    Namespace: OpenAPI.Events.Player
    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
    Type Name Description
    OpenPlayer player
    Item item
    BlockCoordinates coordinates
    BlockFace face
    PlayerInteractEvent.PlayerInteractType type

    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

    The type of interaction

    Declaration
    public PlayerInteractEvent.PlayerInteractType InteractType { get; }
    Property Value
    Type Description
    PlayerInteractEvent.PlayerInteractType
    | Improve this Doc View Source

    Item

    The item the player was holding

    Declaration
    public Item Item { get; }
    Property Value
    Type Description
    Item
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX