Search Results for

    Show / Hide Table of Contents

    Class EntityInteractEvent

    Dispatched when a OpenPlayer interacts with an entity

    Inheritance
    System.Object
    Event
    EntityEvent
    EntityInteractEvent
    Inherited Members
    EntityEvent.Entity
    Event.IsCancelled
    Event.SetCancelled(Boolean)
    Namespace: OpenAPI.Events.Entity
    Assembly: OpenAPI.dll
    Syntax
    public class EntityInteractEvent : EntityEvent

    Constructors

    | Improve this Doc View Source

    EntityInteractEvent(MiNET.Entities.Entity, OpenPlayer, McpeInventoryTransaction.ItemUseOnEntityAction)

    Declaration
    public EntityInteractEvent(MiNET.Entities.Entity entity, OpenPlayer source, McpeInventoryTransaction.ItemUseOnEntityAction action)
    Parameters
    Type Name Description
    MiNET.Entities.Entity entity

    The entity the player has interacted with

    OpenPlayer source

    The player that initiated the interaction

    McpeInventoryTransaction.ItemUseOnEntityAction action

    The action that got initiated

    Properties

    | Improve this Doc View Source

    Action

    Declaration
    public McpeInventoryTransaction.ItemUseOnEntityAction Action { get; }
    Property Value
    Type Description
    McpeInventoryTransaction.ItemUseOnEntityAction
    | Improve this Doc View Source

    SourcePlayer

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