BlockStateExtensions Class

Extensions used by BlockState.

public static class BlockStateExtensions

Methods

NameDescription
IsBreak(BlockState)Determines whether this BlockState is in a break state.
IsContinue(BlockState)Determines whether this BlockState is in a continue state.
IsDiscard(BlockState)Determines whether this BlockState is discarded.

IsBreak(BlockState)

BlockStateExtensions.cs

Determines whether this BlockState is in a break state.

public static bool IsBreak(this BlockState blockState)

Parameters

blockState BlockState
State of the block.

Returns

bool true if the block state is in break state

IsContinue(BlockState)

BlockStateExtensions.cs

Determines whether this BlockState is in a continue state.

public static bool IsContinue(this BlockState blockState)

Parameters

blockState BlockState
State of the block.

Returns

bool true if the block state is in continue state

IsDiscard(BlockState)

BlockStateExtensions.cs

Determines whether this BlockState is discarded.

public static bool IsDiscard(this BlockState blockState)

Parameters

blockState BlockState
State of the block.

Returns

bool true if the block state is in discard state