final NBTBlobConverter tmp = new NBTBlobConverter();
tmp.readChisleData( targetA.getTagCompound() );
final VoxelBlob bestBlob = tmp.getBlob();
bestBlob.binaryReplacement( ModUtil.getStateId( Blocks.STONE.getDefaultState() ), 0 );
tmp.setBlob( bestBlob );
<BUG>final NBTTagCompound comp = targetA.getTagCompound().copy();
</BUG>
tmp.writeChisleData( comp, false );
final ItemStack outputPattern = new ItemStack( targetA.getItem() );
outputPattern.setTagCompound( comp );

final NBTBlobConverter tmp = new NBTBlobConverter();
tmp.readChisleData( targetA.getTagCompound() );
final VoxelBlob bestBlob = tmp.getBlob();
bestBlob.binaryReplacement( ModUtil.getStateId( Blocks.STONE.getDefaultState() ), 0 );
tmp.setBlob( bestBlob );
final NBTTagCompound comp = ModUtil.getTagCompound( targetA ).copy();
tmp.writeChisleData( comp, false );
final ItemStack outputPattern = new ItemStack( targetA.getItem() );
outputPattern.setTagCompound( comp );
