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

Parses next parameter as a Minecraft block name. Allows an optional integer parameter to follow the block name after a slash, e.g. "BlockName/#" Messages warnings directly to the player in case of problems.

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

Syntax

   
 C# 
public bool NextBlockWithParam(
	Player player,
	bool allowNoneBlock,
	out Block block,
	out int param
)

Parameters

player
Player
Player to send warnings to (if any come up).
allowNoneBlock
Boolean
Whether "none"/"skip" blocktype is allowed.
block
Block%
On success, this is set to the given block type. On failure, this is set to Block.None
param
Int32%
Optional integer parameter. Set to 1 if not given.

Return Value

True on success. False if no more parameters were given; if next parameter could not be parsed as a block name; if optional parameter was given but was not an integer; or if "none" blocktype was given and allowNoneBlock is false.

See Also