An IBlockState 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 crafttweaker.block.IBlockState;

Extending IBlockProperties

IBlockState extends IBlockProperties. That means that all methods that are available to IBlockProperties objects are also available to IBlockState objects.

ZenMethods and ZenGetters

ZenGetter Return Type Description
block IBlock Returns the refered block
meta int Returns the refered block’s metadata



boolean isReplaceable(IWorld world, IBlockPos pos);

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

Comparing two IBlockState objects

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