ICTBlockState

An ICTBlockState object represents a block’s current state.

Importing the package

It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import mods.contenttweaker.BlockState;

Calling an ICTBlockState

You can get an ICTBlockState either as a parameter in an IBlockAction function or from the Block Bracket Handler

<block:minecraft:dirt>

ZenMethods and ZenGetters

ZenMethod ZenGetter Return Type Description
getBlock() block IBlock Returns the refered block
getMeta() meta int Returns the refered block’s metadata
canProvidePower() boolean Returns if the refered block can provide Redstone Power
getMobilityFlag() PushReaction Returns the push reaction flag

ZenMethods

isReplacable

boolean isReplaceable(IWorld world, IBlockPos pos);
Parameters:

Returns a boolean that sais whether the block can be replaced or not.

getLightValue

int getLightValue(IWorld world, IBlockPos blockPos);
Parameters:

Returns an int representing the current light value at the given location.

getWeakPower

int getWeakPower(IWorld world, IBlockPos blockPos, Facing facing);
Parameters:

Returns an int representing the current redstone power on this side.

getComparatorInputOverride

int getComparatorInputOverride(IWorld world, IBlockPos blockPos);

Parameters:

Returns an int representing the block’s redstone comparator input override type.

Comparing two ICTBlockState objects

You can either use int compare(ICTBlockState other); or the ZenCompare Tokens == !=.
The return different types though: