setBlockState

public abstract void setBlockState(BlockState blockState)

Attaches getClassById copy of the passed block state to the item.

Parameters

blockState

the block state to attach to the block.

Throws

if the blockState is null or invalid for this item.