Search Results for

    Show / Hide Table of Contents

    Class BlockBreakEvent

    Gets dispatched when a breaks a block.

    Inheritance
    System.Object
    Event
    BlockEvent
    BlockExpEvent
    BlockBreakEvent
    BlockStartBreakEvent
    Implements
    INotifyExecution
    Inherited Members
    BlockExpEvent.Experience
    BlockEvent.Block
    Event.IsCancelled
    Event.SetCancelled(Boolean)
    Namespace: OpenAPI.Events.Block
    Assembly: OpenAPI.dll
    Syntax
    public class BlockBreakEvent : BlockExpEvent, INotifyExecution

    Constructors

    | Improve this Doc View Source

    BlockBreakEvent(MiNET.Entities.Entity, MiNET.Blocks.Block, List<Item>)

    Declaration
    public BlockBreakEvent(MiNET.Entities.Entity player, MiNET.Blocks.Block block, List<Item> drops)
    Parameters
    Type Name Description
    MiNET.Entities.Entity player

    The entity that triggered the event

    MiNET.Blocks.Block block

    The block that was broken

    List<Item> drops

    The items that were gonna be dropped if the block broke

    Properties

    | Improve this Doc View Source

    Drops

    The items that were to be dropped if the block gets broken.

    Declaration
    public List<Item> Drops { get; }
    Property Value
    Type Description
    List<Item>
    | Improve this Doc View Source

    OnEventExecution

    Declaration
    public EventHandler<Event.EventTaskCompleted> OnEventExecution { get; set; }
    Property Value
    Type Description
    EventHandler<Event.EventTaskCompleted>
    | Improve this Doc View Source

    Source

    The that broke the block. This can be a player, a mob or null.

    Declaration
    public MiNET.Entities.Entity Source { get; }
    Property Value
    Type Description
    MiNET.Entities.Entity

    Methods

    | Improve this Doc View Source

    OnComplete(Object)

    Declaration
    public void OnComplete(object source)
    Parameters
    Type Name Description
    System.Object source

    Implements

    INotifyExecution
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX