[This is preliminary documentation and is subject to change.]

Finds Block corresponding to given blockName.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)

Syntax

   
 C# 
public static bool GetBlockByName(
	string blockName,
	bool allowNoneBlock,
	out Block block
)

Parameters

blockName
String
Given block name to parse.
allowNoneBlock
Boolean
Whether "none" block type is acceptible.
block
Block%
Block corresponding to given blockName; Block.Undefined if value could not be parsed.

Return Value

True if given blockName was parsed as an acceptible block type.

Exceptions

ExceptionCondition
System..::..ArgumentNullException blockName is null.

See Also