Empeld
Empeld plugin documentation.
pluginbase.Objects.World.IBlockLookup Interface Reference

Get the correct instance of a block given its type More...

Public Member Functions

ushort GetId< T > ()
 Gets the id of a block type More...
 

Properties

IEnumerable< IBlockBlocks [get]
 Gets an enumerable of all blocks currently available More...
 

Detailed Description

Get the correct instance of a block given its type

Attribute: Injectable

Member Function Documentation

◆ GetId< T >()

ushort pluginbase.Objects.World.IBlockLookup.GetId< T > ( )

Gets the id of a block type

Returns
The identifier.
Template Parameters
TThe 1st type parameter.
Type Constraints
T :IBlock 

Property Documentation

◆ Blocks

IEnumerable<IBlock> pluginbase.Objects.World.IBlockLookup.Blocks
get

Gets an enumerable of all blocks currently available

The blocks.


The documentation for this interface was generated from the following file: