Class BlockExtensions
Static extension methods for Block objects.
Inheritance
System.Object
BlockExtensions
Namespace: Eco.World
Assembly: Eco.World.dll
Syntax
public static class BlockExtensions : Object
Methods
GetID(Block)
returns the assigned ID for this block type. This ID should be considered transient, as it can change easily.
Declaration
public static ushort GetID(this Block block)
Parameters
| Type | Name | Description |
|---|---|---|
| Block | block | Block to retrieve the id of. |
Returns
| Type | Description |
|---|---|
| System.UInt16 | ushort representing the block's identifier. |