Class BlockBreakEvent
Gets dispatched when a
Implements
Inherited Members
Namespace: OpenAPI.Events.Block
Assembly: OpenAPI.dll
Syntax
public class BlockBreakEvent : BlockExpEvent, INotifyExecution
Constructors
| Improve this Doc View SourceBlockBreakEvent(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 SourceDrops
The items that were to be dropped if the block gets broken.
Declaration
public List<Item> Drops { get; }
Property Value
Type | Description |
---|---|
List<Item> |
OnEventExecution
Declaration
public EventHandler<Event.EventTaskCompleted> OnEventExecution { get; set; }
Property Value
Type | Description |
---|---|
EventHandler<Event.EventTaskCompleted> |
Source
The
Declaration
public MiNET.Entities.Entity Source { get; }
Property Value
Type | Description |
---|---|
MiNET.Entities.Entity |
Methods
| Improve this Doc View SourceOnComplete(Object)
Declaration
public void OnComplete(object source)
Parameters
Type | Name | Description |
---|---|---|
System.Object | source |