Class EntityInteractEvent
Dispatched when a OpenPlayer interacts with an entity
Namespace: OpenAPI.Events.Entity
Assembly: OpenAPI.dll
Syntax
public class EntityInteractEvent : EntityEvent
Constructors
| Improve this Doc View SourceEntityInteractEvent(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 SourceAction
Declaration
public McpeInventoryTransaction.ItemUseOnEntityAction Action { get; }
Property Value
Type | Description |
---|---|
McpeInventoryTransaction.ItemUseOnEntityAction |
SourcePlayer
Declaration
public OpenPlayer SourcePlayer { get; }
Property Value
Type | Description |
---|---|
OpenPlayer |